[Rsiena-help] simulated networks for bipartite models

Ruth M. Ripley ruth at stats.ox.ac.uk
Fri Apr 23 20:31:17 CEST 2010


Dear Marco,

The returned simulated data is in the form of an edgelist, so the first
entry is the actor and the second entry is the receiver. The link is from
the actor to the receiver.

If you want to get outdegrees, I would suggest loading the edgelist into a
sparse matrix using, from the Matrix package.

mymat <- spMatrix(nrow=number of actors, ncol=number of receivers, i= col
1 of the egelist, j= col2 of the edgelist, x = rep(1, number of rows in the
edgelist)

Then you can use colSums and rowSums to get in and outdegrees.

Regards,

Ruth


On Fri, 23 Apr 2010, marco tonellato wrote:

> Dear Ruth,
>
> Recently I also tried to get a sample of simulated networks by using
> returnDeps=TRUE in order to inspect how my model  represents the degree
> distributions of my bipartite network.
>
> However, I have a problem with the numbering of the nodes in the returned
> edgelist. If I am not mistaken, whereas the simulated networks appear to be
> correct bipartite networks, numbers are assigned to nodes without
> distinguishing between modes and therefore it becomes impossible to find out
> afterwards which is which.
>
> For example, given my network with 83 actors of the first mode, in the first
> simulated network a tie exists between 82 and 72. How can I tell which node
> belongs to which mode and be able to compute the degree distribution for
> both of them?
>
> Thank you again for your help,
>
> Marco
>



More information about the Rsiena-help mailing list