[Rsiena-help] Exclude effects

Filippo Santi filippo.santi at unitn.it
Mon Nov 6 09:33:25 CET 2017


Dear All,

I am having some problems with the 'include = FALSE' argument in the
'includeEffects()' function.


*The code I am typing is *

*friend_effects <- includeEffects(friend_effects, *
*                                                       totSim, *
*                                                       interaction1 =
'fr4wave', *
*                                                       name =
'smoke_behav', *
*                                                       include = FALSE)
      *

but it returns this error to me

Error in `row.names<-.data.frame`(`*tmp*`, value = 1:nrow(specs)) :
  invalid 'row.names' length

*I already estimated a model with 8 effects, defined previously as follows* (no
problem arose until I tried to switch off one of the effects previously
included)

friend_effects <- getEffects(friend)
friend_effects <- includeEffects(friend_effects,
                                 sameX,
                                 interaction1 = 'gender',
                                 name = 'fr4wave')
friend_effects <- includeEffects(friend_effects,
                                 egoX,
                                 interaction1 = 'smoke_behav',
                                 name = 'fr4wave')
friend_effects <- includeEffects(friend_effects,
                                 altX,
                                 interaction1 = 'smoke_behav',
                                 name = 'fr4wave')
friend_effects <- includeEffects(friend_effects,
                                 sameX,
                                 interaction1 = 'smoke_behav',
                                 name = 'fr4wave')
friend_effects <- includeEffects(friend_effects,
                                 avSim,
                                 interaction1 = 'fr4wave',
                                 name = 'smoke_behav')
friend_effects <- includeEffects(friend_effects,
                                 totSim,
                                 interaction1 = 'fr4wave',
                                 name = 'smoke_behav')
friend_effects <- includeEffects(friend_effects,
                                 recip,
                                 name = 'fr4wave')
friend_effects <- includeEffects(friend_effects,
                                 transTrip,
                                 name = 'fr4wave')

*I am using the following RSiena version*

Package:  RSiena
Type:  Package
Version:  1.2-3
Date:  2017-09-08
Depends:  R (>= 3.0.0)
Imports:  Matrix
Suggests:  tcltk, network, codetools, lattice, MASS, parallel, xtable,
tools, utils
SystemRequirements:  GNU make, tcl/tk 8.5, Tktable
License:  GPL-2
LazyData:  yes
NeedsCompilation:  yes
BuildResaveData:  no

I checked on the RSiena documentation webpage for some scripts, and it
looks I am typing the right piece of code. Any suggestion?

Best,

Filippo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20171106/98eec86a/attachment.html>


More information about the Rsiena-help mailing list