powered by
estimates SBM parameters given community labels
SBM.estimate(A, g)
adjacency matrix
a vector of community labels
a list of
estimated block connection probability matrix
estimated probability matrix
community labels
maximum likelhood is used
B. Karrer and M. E. Newman. Stochastic blockmodels and community structure in networks. Physical Review E, 83(1):016107, 2011.
DCSBM.estimate
# NOT RUN { dt <- BlockModel.Gen(30,300,K=3,beta=0.2,rho=0) A <- dt$A sc <- reg.SP(A,K=3,lap=TRUE) sbm <- SBM.estimate(A,sc$cluster) sbm$B # }
Run the code above in your browser using DataLab