sample_dcpp {nett} | R Documentation |
Sample from a DCPP
Description
Sample from a degree-corrected planted partition model
Usage
sample_dcpp(
n,
lambda,
K,
oir,
theta = NULL,
pri = rep(1, K)/K,
normalize_theta = FALSE
)
Arguments
n |
number of nodes |
lambda |
average degree |
K |
number of communities |
oir |
out-in ratio |
theta |
propensity parameter, if not given will be samples from a Pareto distribution with scale parameter 2/3 and shape parameter 3 |
pri |
prior distribution of node labels |
normalize_theta |
whether to normalize theta so that max(theta) == 1 |
Value
an adjacency matrix following a degree-corrected planted parition model
See Also
[Package nett version 1.0.0 Index]