[Rsiena-help] setParameter and interactions between the behaviorand attribute variables in the selection part
Huisman, Chip
C.Huisman at uva.nl
Fri Mar 5 13:43:02 CET 2010
Of course,
that is:
Best regards,
Chip Huisman
________________________________
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
Huisman, Chip
Sent: vrijdag 5 maart 2010 13:32
To: rsiena-help at lists.r-forge.r-project.org
Subject: [Rsiena-help] setParameter and interactions between the
behaviorand attribute variables in the selection part
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20100305/31940b7e/attachment.htm
More information about the Rsiena-help
mailing list