<div dir="ltr"><div>Dear All, </div><div><br></div><div>I am having some problems with the 'include = FALSE' argument in the 'includeEffects()' function.</div><div><br></div><div><br></div><div><b>The code I am typing is </b></div><div><b><br></b></div><div><div><b>friend_effects <- includeEffects(friend_effects, </b></div><div><b>                                                       totSim, </b></div><div><b>                                                       interaction1 = 'fr4wave', </b></div><div><b>                                                       name = 'smoke_behav', </b></div><div><b>                                                       include = FALSE)          </b></div></div><div><br></div><div>but it returns this error to me</div><div><br></div><div><div><font color="#ff0000">Error in `row.names<-.data.frame`(`*tmp*`, value = 1:nrow(specs)) : </font></div><div><font color="#ff0000">  invalid 'row.names' length</font></div></div><div><br></div><div><b>I already estimated a model with 8 effects, defined previously as follows</b> (no problem arose until I tried to switch off one of the effects previously included) </div><div><br></div><div><div>friend_effects <- getEffects(friend)</div><div>friend_effects <- includeEffects(friend_effects,           </div><div>                                 sameX,                    </div><div>                                 interaction1 = 'gender',   </div><div>                                 name = 'fr4wave')    </div><div>friend_effects <- includeEffects(friend_effects,        </div><div>                                 egoX,                         </div><div>                                 interaction1 = 'smoke_behav',  </div><div>                                 name = 'fr4wave')               </div><div>friend_effects <- includeEffects(friend_effects,               </div><div>                                 altX,                        </div><div>                                 interaction1 = 'smoke_behav',    </div><div>                                 name = 'fr4wave')             </div><div>friend_effects <- includeEffects(friend_effects,              </div><div>                                 sameX,                        </div><div>                                 interaction1 = 'smoke_behav',  </div><div>                                 name = 'fr4wave')              </div><div>friend_effects <- includeEffects(friend_effects,          </div><div>                                 avSim,                   </div><div>                                 interaction1 = 'fr4wave',  </div><div>                                 name = 'smoke_behav')      </div><div>friend_effects <- includeEffects(friend_effects,           </div><div>                                 totSim,                    </div><div>                                 interaction1 = 'fr4wave',   </div><div>                                 name = 'smoke_behav')    </div><div>friend_effects <- includeEffects(friend_effects,         </div><div>                                 recip,                 </div><div>                                 name = 'fr4wave')         </div><div>friend_effects <- includeEffects(friend_effects,          </div><div>                                 transTrip,                </div><div>                                 name = 'fr4wave')   </div><div><br></div><div><b>I am using the following RSiena version</b></div><div><br></div><table summary="Rd table" style="color:rgb(0,0,0);font-family:sans-serif;font-size:13.3333px"><tbody><tr><td style="font-family:sans-serif;font-size:10pt">Package:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">RSiena</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Type:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">Package</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Version:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">1.2-3</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Date:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">2017-09-08</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Depends:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">R (>= 3.0.0)</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Imports:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">Matrix</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">Suggests:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">tcltk, network, codetools, lattice, MASS, parallel, xtable, tools, utils</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">SystemRequirements:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">GNU make, tcl/tk 8.5, Tktable</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">License:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">GPL-2<span class="gmail-Apple-converted-space"> </span></td></tr><tr><td style="font-family:sans-serif;font-size:10pt">LazyData:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">yes</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">NeedsCompilation:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">yes</td></tr><tr><td style="font-family:sans-serif;font-size:10pt">BuildResaveData:<span class="gmail-Apple-converted-space"> </span></td><td style="font-family:sans-serif;font-size:10pt">no</td></tr></tbody></table><div>      </div></div><div><div>I checked on the RSiena documentation webpage for some scripts, and it looks I am typing the right piece of code. Any suggestion?</div></div><div><br></div><div>Best, </div><div><br></div><div>Filippo</div><div><br></div>
</div>