Generates networks from nomination stochastic block model for community structure in edge nomination procedures, proposed in Li et. al. (2020)
NSBM.Gen( n, K, avg.d,beta,theta.low=0.1,
theta.p=0.2,lambda.scale=0.2,lambda.exp=FALSE)
A list of
the generated network adjacency matrix
community membership
probability matrix of the orignal SBM network
probability matrix of the observed network after nomination
B parameter
lambda parameter
theta parameter
size of network
number of communities
expected average degree of the resuling network (after edge nomination)
the out-in ratio of the original SBM
the lower value of theta's. The theta's are generated as two-point mass at theta.low and 1.
proportion of lower value of theta's
standard deviation of the lambda (before the exponential, see lambda.exp)
If TRUE, lambda is generated as exponential of uniformation random randomes. Otherwise, they are normally distributed.
Tianxi Li, Elizaveta Levina, Ji Zhu
Maintainer: Tianxi Li tianxili@virginia.edu
T. Li, E. Levina, and J. Zhu. Community models for networks observed through edge nominations. arXiv preprint arXiv:2008.03652 (2020).
dt <- NSBM.Gen(n=200,K=2,beta=0.2,avg.d=10)
Run the code above in your browser using DataLab