[Rsiena-help] multiple networks
Ruth M. Ripley
ruth at stats.ox.ac.uk
Fri Apr 23 14:38:08 CEST 2010
Dear Maarten,
Just add all the objects to one call to sienaDataCreate. The only
complication is if you have more than one set of node sets, when you need
to specify any non-default one in the calls to sienaNet etc. And create
them using sienaNodeSet eg
for onemode network:
mynet1 <- sienaNet(array(c(s501, s502, s503), dim=c(50, 50, 3)),
nodeSet='student')
for behavior variable:
mynet2 <- sienaNet(s50a, type='behavior', nodeSet='student')
for bipartite network:
mynet3 <- sienaNet(array(c(s501, s502, s503), dim=c(50, 50, 3)),
type='bipartite', nodeSet=c('Actors', 'student'))
(this is a fake!)
create the node sets: number of nodes and the name.
students <- sienaNodeSet(50, 'student')
Actors <- sienaNodeSet(50, 'Actors')
then create the data by just listing all the objects:
mydata <- sienaDataCreate(mynet1, mynet2, mynet3, nodeSets=list(students, Actors))
You do not need to specify the node set name 'Actors' when creating an
object, other than for a bipartite network, but if you have any other node
sets you do need to create the Actors node set and add it to the nodeSets
list as here.
Hope this helps, I obviously need to add some more examples to the manual!
Regards,
Ruth
On Wed, 21 Apr 2010, Maarten Van Zalk wrote:
> Dear Ruth,
>
> I was wondering whether you could help me out with running multiple
> networks in RSiena. I understand how to make separate objects for each
> network, but how do I combine the objects for the analysis?
>
> I have data of around 850 adolescents and their friends inside school
> and friends outside school (2 networks). To start off, I was thinking
> about selecting just one class, and making a network of their friends
> within the same school and outside their school.
>
> Perhaps there is literature out there available on how to do this, but
> I have not been able to find it in the manual (only information on the
> formulae for the multiple network effects)...
>
> Thanks once again!
>
> Maarten
>
More information about the Rsiena-help
mailing list