rnet.gnp {simcausal} | R Documentation |
Call igraph::sample_gnp
to Generate Random Graph Object According to the G(n,p) Erdos-Renyi Model
Description
Call igraph::sample_gnp
and convert the output to simcausal
network matrix.
Usage
rnet.gnp(n, p)
Arguments
n |
Size of the network graph (number of nodes). |
p |
Same as |
Value
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
See Also
[Package simcausal version 0.5.6 Index]