This internal class is designed to adjust a binary Stochastic Block Model in the context of missSBM.
This internal class is designed to adjust a binary Stochastic Block Model in the context of missSBM.
sbm::SBM -> sbm::SBM_fit -> sbm::SimpleSBM_fit -> SimpleSBM_fit_missSBM
vExpecdouble: variational approximation of the expectation complete log-likelihood
loglikdouble: approximation of the log-likelihood (variational lower bound) reached
ICLdouble: value of the integrated classification log-likelihood
new()constructor for simpleSBM_fit for missSBM purpose
SimpleSBM_fit_missSBM$new(adjacencyMatrix, clusterInit, covarList = list())
adjacencyMatrixa matrix encoding the graph
clusterInitInitial clustering: either a character in "hierarchical", "spectral" or "kmeans", or a vector with size ncol(adjacencyMatrix), providing a user-defined clustering with nbBlocks levels. Default is "hierarchical".
covarListAn option list with M entries (the M covariates).
doVEM()method to perform estimation via variational EM
SimpleSBM_fit_missSBM$doVEM( threshold = 1e-04, maxIter = 10, fixPointIter = 3, trace = FALSE )
thresholdstop when an optimization step changes the objective function by less than threshold. Default is 1e-4.
maxIterV-EM algorithm stops when the number of iteration exceeds maxIter. Default is 10
fixPointIternumber of fix-point iterations in the Variational E step. Default is 3.
tracelogical for verbosity. Default is FALSE.
update_parameters()update parameters estimation (M-step)
SimpleSBM_fit_missSBM$update_parameters()
update_blocks()update variational estimation of blocks (VE-step)
SimpleSBM_fit_missSBM$update_blocks(log_lambda = 0)
log_lambdadouble use to adjust the parameter estimation according to the sampling design
clone()The objects of this class are cloneable with this method.
SimpleSBM_fit_missSBM$clone(deep = FALSE)
deepWhether to make a deep clone.
It is not designed not be call by the user