<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="font-size:12.8px">Hello all, I'm relatively new to R and Siena and am analyzing coevolution data on drinking and friendship, with a focus on how depression moderates this process. I have been able to include an interaction term between ego's level of depression (as a time varying covariate) and alter's drinking in the network function, but when I try to include a parallel interaction between ego's depression and alters' average drinking (avAlt, which is included in the effects list) on the behavior function, I get an error. I<span style="font-size:12.8px"> suspect it's something trivial, but I haven't been able to find a way to get around it and would be deeply grateful for any assistance. </span></div><div class="gmail_default" style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:12.8px">Here's the code </div><div class="gmail_default" style="font-size:12.8px"><br></div><div class="gmail_default" style="font-size:12.8px"><div class="gmail_default">> myCoEvolutionEff <- includeInteraction(myCoEvolutionEff, </div><div class="gmail_default"> name = "drinkingbeh", effFrom, avAlt, </div><div class="gmail_default"> interaction1=c("depression", "drinkingbeh"))</div></div><div style="font-family:arial,sans-serif;font-size:12.8px"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">Error in includeInteraction(myCoEvolutionEff, name = "drinkingbeh", effFrom, : </div><div dir="ltr"> Second effect not found</div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks in advance,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Bob Faris</div></div></div></div></div><div><div class="gmail_signature"><div dir="ltr"><br>************************************<br>Robert Faris, PhD<br>Associate Professor<br>Department of Sociology<br>University of California at Davis<br>2247 Social Sciences and Humanities<br>One Shields Avenue<br>Davis, CA 95616<br>Cell: 510-221-8876<br>Fax 530-752-0783<br><a href="http://sociology.ucdavis.edu/people/rwfaris" target="_blank">http://sociology.ucdavis.edu/people/rwfaris</a> </div></div></div>
</div>