[Rsiena-help] setParameter and interactions between the behavior and attribute variables in the selection part
Tom Snijders
Tom.Snijders at nuffield.ox.ac.uk
Sat Mar 6 16:46:09 CET 2010
Dear Chip,
If things are as they should, then it would be possible to specify an interaction between SES (actor covariate) and smoking (behavior variable). Of course you have to specify for both the further option ego/alter/similarity.
If this is not clear, after reading in the manual about specification of interactions of network effects, ask further.
For categorical variables, yes, use dummies and leave out the reference category.
Best,
Tom
============================================
Tom A.B. Snijders
Professor of Statistics in the Social Sciences
Department of Politics and Department of Statistics
Nuffield College
University of Oxford
tel. +44-01865-278599
http://stat.gamma.rug.nl/snijders/
> -----Original Message-----
> From: rsiena-help-bounces at lists.r-forge.r-project.org [mailto:rsiena-help-
> bounces at lists.r-forge.r-project.org] On Behalf Of Ruth M. Ripley
> Sent: 05 March 2010 20:50
> To: Huisman, Chip
> Cc: rsiena-help at r-forge.wu-wien.ac.at
> Subject: Re: [Rsiena-help] setParameter and interactions between the
> behavior and attribute variables in the selection part
>
> Dear Chip,
>
> I can only help with the first question, and I am sorry I was not very
> clear in my previous answer concerning this.
>
> The effect name does not need to have the 2. You need something like
>
> myeff[myeff$effectName=='behavior roken: influence interaction? x ses'&
> myeff$type=='eval', 'include' ]=TRUE
>
> and
>
> myeff[myeff$effectName=='behavior roken: influence interaction2'&
> myeff$type=='eval', 'parm' ]<-2
>
> or
>
> setEffect(myeff, InflIntX, name="roken", interaction1="ses", parameter=2)
>
> with possibly interaction2="mynet1" if you have more than one network.
>
> includeInteraction is for user specified interactions, and is only for
> network ones at present. setParameter has been expanded into setEffect,
> which is in all the current versions (I think!), even of the manual.
>
> The other questions require more modelling expertise than I have.
> Hopefully some other reader will help. Or try the Stocnet/Siena group...
>
> Regards,
>
> Ruth
> --
> Ruth M. Ripley, Email:ruth at stats.ox.ac.uk
> Dept. of Statistics, http://www.stats.ox.ac.uk/~ruth/
> University of Oxford, Tel: 01865 282851
> 1 South Parks Road, Oxford OX1 3TG, UK Fax: 01865 272595
>
>
> On Fri, 5 Mar 2010, Huisman, Chip wrote:
>
> > Dear m,
> >
> > I've got 3 questions
> > 1. I'm trying do make interactions in the influence part of the model
> using:
> >
> > myeff[myeff$effectName=='behavior roken: influence interaction2'&
> myeff$type=='eval', 'include' ]=TRUE
> >
> > were interaction2 is the attribute variable SES, but it doesn't work.
> > I know I have to set the 'parm' column on 1 2 or 3, but how do I do this
> using R function without the GUI?
> > I also tried for the selection part:
> >
> > myeff <- includeInteraction(myeff, egoX, recip,interaction1="ses")
> > myeff <- setParameter(myeff, outInv, 3)
> > but R gives me the following massage:
> > Error: could not find function "setParameter"
> >
> > 2. I want to do make an interaction between an attribute variable and
> the behavior variable
> > in the selection part of the model.
> > to exemplify: I try to test the hypothesis: smoking students from lower
> SES backgrounds have a stronger preference for smoking friends.
> > Is it possible to program that? I tried to make a changing covariate
> SESxsmoking, but I only have to waves, and according to the tutorial (page
> 28) that doesn't make sense. So I figured that I make a interaction
> SESxsmoking on basis of the smoking scores of the first wave and use it as
> a covariate. But I have a feeling that this is not correct.
> >
> >
> > 3. I would like to use dummies as is usual in ols regression in the
> influence part of the model for the main effects of an attribute variable.
> Does this work in the same way as in ols regression, in the sense that I
> have to leave out one reference category?
> > Important to know is that I cannot use the fix(myeff), I have to edit
> the dataframe directly with R functions.
> > I hope you can help me out.
> >
> > Best regards,
> >
> >
> >
> >
> >
> >
>
>
>
>
> _______________________________________________
> 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
More information about the Rsiena-help
mailing list