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
vExpec
double: variational approximation of the expectation complete log-likelihood
loglik
double: approximation of the log-likelihood (variational lower bound) reached
ICL
double: value of the integrated classification log-likelihood
new()
constructor for simpleSBM_fit for missSBM purpose
SimpleSBM_fit_missSBM$new(adjacencyMatrix, clusterInit, covarList = list())
adjacencyMatrix
a matrix encoding the graph
clusterInit
Initial 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".
covarList
An 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 )
threshold
stop when an optimization step changes the objective function by less than threshold. Default is 1e-4.
maxIter
V-EM algorithm stops when the number of iteration exceeds maxIter. Default is 10
fixPointIter
number of fix-point iterations in the Variational E step. Default is 3.
trace
logical 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_lambda
double 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)
deep
Whether to make a deep clone.
It is not designed not be call by the user