# NOT RUN {
# 50 draws from a stochastic block model for two network data views
# where the communities are dependent
n <- 50
Pi <- diag(c(0.5, 0.5))
theta1 <- rbind(c(0.5, 0.1), c(0.1, 0.5))
theta2 <- cbind(c(0.1, 0.5), c(0.5, 0.1))
dat <- mv_sbm_gen(n, Pi, theta1, theta2)
# Fit SBM to view 1
results <- pl_est_com(X=dat$data$view1, K = 2)
table(results$class, dat$communities$view1)
# }
Run the code above in your browser using DataLab