[Rsiena-help] error including interaction effect

Christian Steglich c.e.g.steglich at rug.nl
Tue Jan 5 08:22:01 CET 2016


Dear Bob,

please replace "drinkingbeh" in the "interaction1=..." option by the 
name of the network (which is the common interaction1-value for the 
average alter effect) - this should work.

For these kinds of application questions, actually the other discussion 
forum is the good one:
https://groups.yahoo.com/neo/groups/stocnet/info

Please reserve this one for software programming related issues!
All the best,
Christian


On 03-Jan-16 17:59, Bob Faris wrote:
> 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 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.
>
> Here's the code
>
> > myCoEvolutionEff <- includeInteraction(myCoEvolutionEff,
>       name = "drinkingbeh", effFrom, avAlt,
>       interaction1=c("depression", "drinkingbeh"))
>
> Error in includeInteraction(myCoEvolutionEff, name = "drinkingbeh", 
> effFrom,  :
>   Second effect not found
>
>
> Thanks in advance,
> Bob​ Faris
>
> ************************************
> Robert Faris, PhD
> Associate Professor
> Department of Sociology
> University of California at Davis
> 2247 Social Sciences and Humanities
> One Shields Avenue
> Davis, CA 95616
> Cell:  510-221-8876
> Fax 530-752-0783
> http://sociology.ucdavis.edu/people/rwfaris
>
>
> _______________________________________________
> Rsiena-help mailing list
> Rsiena-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help


-- 
_ __ ___ ____ ___ __ _ __ ___ ____ ___ __ _

Christian Steglich, University of Groningen
Faculty of Behavioural and Social Sciences
Grote Rozenstraat 31, NL-9712 TG Groningen
http://www.gmw.rug.nl/~steglich/
_ __ ___ ____ ___ __ _ __ ___ ____ ___ __ _

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20160105/0f142ae0/attachment.html>


More information about the Rsiena-help mailing list