sample_dcpp: Sample from a DCPP

View source: R/models.R

sample_dcppR 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

sample_dcsbm, sample_tdcsbm


aaamini/nett documentation built on Nov. 12, 2022, 6:25 p.m.