View source: R/network_distributions.R
| rnet.gnp | R Documentation |
igraph::sample_gnp to Generate Random Graph Object According to the G(n,p) Erdos-Renyi ModelCall igraph::sample_gnp and convert the output to simcausal network matrix.
rnet.gnp(n, p)
n |
Size of the network graph (number of nodes). |
p |
Same as |
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
rnet.gnm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.