powered by
igraph::sample_gnp
Call igraph::sample_gnp and convert the output to simcausal network matrix.
simcausal
rnet.gnp(n, p)
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
Size of the network graph (number of nodes).
Same as igraph::sample_gnp: The probability for drawing an edge between two arbitrary vertices (G(n,p) graph).
rnet.gnm