rnet.gnm: Call 'igraph::sample_gnm' to Generate Random Graph Object...

Description Usage Arguments Value See Also

View source: R/network_distributions.R

Description

Call igraph::sample_gnm and convert the output to simcausal network matrix. The parameter m of igraph::sample_gnm is derived from n and m_pn as as.integer(m_pn*n)

Usage

1
rnet.gnm(n, m_pn)

Arguments

n

Size of the network graph (number of nodes).

m_pn

The total number of edges as a fraction of the sample size n.

Value

A matrix with n rows, each row lists the indices of friends connected to that particular observation.

See Also

rnet.gnp


osofr/simcausal documentation built on Jan. 6, 2019, 3:05 a.m.