Changelog
Source:NEWS.md
missSBM 1.2.0
This version changes the estimation of the missing-not-at-random designs and the ICL: the results of block-node, block-dyad, double-standard and degree, and the models selected for all the designs, can differ from those of missSBM 1.1.0. To reproduce former results, install missSBM 1.1.0 (e.g., remotes::install_version("missSBM", "1.1.0")).
Changes in the estimation
-
block-nodeandblock-dyad: the sampling only depends on the blocks, so the missing dyads are integrated out given the blocks. The SBM part is fitted on the observed dyads, with the sampling term in the update of the blocks. This is a tighter bound of the same likelihood, and it removes a feedback of the imputations on the blocks, which could empty the blocks of unobserved nodes: the clustering is much more accurate when many dyads are missing. -
double-standard: the missing dyads are integrated out given the blocks too, and the connectivity and the sampling parameters (p0, p1) are estimated jointly. (p0, p1) are only identified through the differences of connectivity between the blocks: with a single block, the model is fitted with p0 = p1, i.e. asdyadsampling, andestimateMissSBM()warns. -
degree: the variational EM maximizes the bound of the model again (Tabouy, Barbillon & Chiquet, 2020). It fits the SBM part on the observed dyads, then the sampling part, then all the parameters jointly, the blocks taking the imputed dyads into account. In the previous versions, the clustering ignored the sampling. - The variational EM monitors and stops on the bound it maximizes (
loglik), for all the designs.
ICL
- The ICL is built on the observed data, the observed dyads and the sampling matrix: -2 times the ELBO at the MAP memberships plus the penalty. The missing dyads are integrated out exactly, except for
degree, whose bound includes the imputed dyads and their entropy. This makes the ICL of different designs comparable, although some designs remain hard to tell apart (e.g.block-nodeanddegreeon an assortative network). - The penalty counts the observed dyads for the connectivity instead of all the possible dyads.
- The ICL of the previous versions, computed on the network completed by the imputations, is no longer available: it rewarded the models that predict the missing dyads with certainty, and selected too many blocks when many dyads are missing.
New fields
-
missSBM_fit$imputations: the imputations of the missing dyads ofdegree(NULLfor the other designs, which integrate them out;imputedNetworkgives the imputed network of any design). -
fittedSBM$nbObservedDyads; a columnstagein themonitoringof adegreefit.
Arguments and documentation
- A new vignette,
vignette("case_study_frenchblog"), follows a reduced form of the analysis of the French political blogosphere of the JSS article with the current version. -
estimateMissSBM()andobserveNetwork()check their arguments with informative messages. -
?estimateMissSBMdescribes the parameters of every design and the model/design selection by the ICL. - The fits of the
double-standardanddegreesamplings are objects of classesmissSBM_fit_doubleStandardandmissSBM_fit_degree, which inherit frommissSBM_fit(same fields and methods).
Memory and speed
- No n x n matrix is formed any more for the designs without covariates (network object, initial clustering, imputations, fit), and several computations run in C++: the memory used is several times smaller (building the network object takes about the size of its result, instead of five times the input), and the estimation is about twice as fast. Same results.
Bug fixes
-
degree: the imputations were not probabilities, the sampling parameters were estimated on wrong degrees (since 1.0.0), the variational parameter of the bound of Jaakkola and Jordan was truncated to [0, 1], which biased the sampling parameters (since 2018), and the ICL used an approximation above the expected log-likelihood of the sampling instead of its bound. -
block-dyad: the expected log-likelihood of the sampling was the log of an expectation, which overestimated the objective and the ICL. -
block-dyad: the observation rates between two different blocks were slightly biased (wrong count of dyads), and asymmetric in an undirected network, where the ICL also counted Q^2 sampling parameters instead of Q(Q+1)/2. -
block-nodeandblock-dyad: the sampling parameters were not reordered with the blocks of the SBM, so thatfittedSampling$parametersandcoef()did not matchfittedSBM. -
imputedNetworknow gives the imputations at the final parameters (they came from the last iteration of the variational EM). - Covariates in the SBM: the M-step could fail when two blocks had no edge between them, as the connectivity reached 0 exactly; it is now bounded away from 0 and 1, as without covariates.
-
summary()of amissSBM_collectionfailed; it now prints the collection, as for a fit. - The
wardata sets were stored by an old version of igraph, which printed a conversion message when used.
missSBM 1.1.0 (2026-07-21)
CRAN release: 2026-07-21
Major changes
-
Breaking:
estimateMissSBM()’scontrolmust now be built with the newmissSBM_param()(one named, defaulted argument per option) instead of a rawlist(...), which now errors with a message pointing at the replacement. -
missSBM_fitnow exposessplit(),merge(),candidates_split()andcandidates_merge()as instance methods, previously inlined inmissSBM_collection’s exploration logic; same search algorithm, now independently testable. - new
polish(control)(missSBM_fitandmissSBM_collection): node-swap refinement after VEM convergence, fixing individually misclassified nodes thatsplit()/merge()cannot reach. - requesting more blocks than a network actually supports can make VEM collapse one or more classes; this used to be silent, and split/merge exploration’s own repair of it could silently corrupt
vBlocks’s bookkeeping (duplicated/missing entries, non-smooth ICL/ELBO inplot()). Now fixed and made visible:missSBM_fit$repair(control)recovers a collapsed fit ; newoccupiedBlocks/degeneratefields expose any remaining collapse;bestModelskips degenerate models when possible andplot()marks them with a distinct point shape;estimateMissSBM()’s newstopOnDegenerate/maxConsecutiveDegeneratecontrols (defaultTRUE/2) stop forward exploration from growing further into a persistently unsupported range. - new
estimate_chain()(missSBM_collection) /warmChaincontrol (defaultFALSE, opt-in): initializes each model by splitting the already-converged, smaller neighbor instead of an independent cold clustering, substantially reducing collapse in practice, at the cost of fittingvBlockssequentially rather than in parallel. - replace the NLopt/CCSAQ optimizer for the covariate connectivity parameters with a builtin Newton-Raphson solver (the M-step objective is concave, so it converges reliably in a handful of iterations);
nloptris no longer a dependency - fix
partlyObservedNetwork$imputation(): the fill value for missing dyads was biased low by including not-yet-imputed entries in its own computation. Known side effect:doubleStandardSampling_fit’s initial psi bootstrap can degenerate when the fill value exactly matches the empirical observed edge rate (refined away by the VEM loop that follows)
Minor changes
- profiled
estimateMissSBM()and fixed several hot-path inefficiencies: avoidabledense * sparsepromotion overhead, a redundant recomputation of the dense imputed-network matrix, and anifelse()evaluating both of its branches unconditionally. Roughly 3x faster on our benchmark, bit-identical results -
estimateMissSBM()now sorts/de-duplicatesvBlocksif needed (with a warning), since exploration and chaining both assume it is strictly increasing. -
estimateMissSBM()’scontroldrops theexplorationfield: nobody used"forward"/"backward"alone at that level, only"both"/"none", soiteratesnow doubles as the on/off switch (0disables exploration entirely).missSBM_collection$explore()no longer reads a storedexplorationcontrol field either; itsdirectionargument (default"both") is now a plain per-call parameter, still available for advanced/internal use. - cap the number of merge candidates tried during backward exploration (
control$maxMergeCandidates, default 30) instead of always trying every pair - fix a crash and a closed-form algebra bug in the “degree” sampling design; parameter recovery for this design can still be biased under heavy missingness (known limitation)
- fix a consistency bug in
missSBM_fit$doVEM()’s step-back: only the SBM was restored, not the sampling model or the current imputation - speed up
getCovarArray()andkmeans_missSBM()’s seeding - remove unused
src/utils.h -
missSBM_fit’spolish(),repair(),candidates_split()andcandidates_merge()gain the same defaultcontrolasdoVEM(), so they can be called standalone without building a full control list first;missSBM_collection’s calls (which always pass an explicit control list) are unaffected ;missSBM_collection’sestimate()/polish()/explore()now share a control list stored at construction, no longer requiringcontrolon every call. - Factored
missSBM_collection’sexplore_forward()/explore_backward()into a shared privateexplore_direction(), andmissSBM_fit’scandidates_split()/candidates_merge()’s trial-fit loop into a shared privatetrial_fit_candidates(); verified bit-identical output on the same fixed-seed scenario used throughout this changelog to diagnose VEM collapse
missSBM 1.0.5 (2025-03-12)
CRAN release: 2025-03-13
- minor fix to comply with nlopt version 2.9.1 (NOCEDAL)
missSBM 1.0.4 (2023-10-19)
CRAN release: 2023-10-24
- minor fix in package documentation due to evolution of roxygen2 7.0.0 https://github.com/r-lib/roxygen2/issues/1491.
missSBM 1.0.3
CRAN release: 2022-08-23
- Tiny adaptation due to new Matrix version 1.4-2
- fix for HTML5 in documentation, plus various typos
missSBM 1.0.2
CRAN release: 2022-02-01
- Fix linking problem with new version of nloptR (2.0.0)
- Reference the JSS paper
missSBM 1.0.1 [2021-06-04]
CRAN release: 2021-06-04
- less conservative tests to avoid random failure in CRAN checks
- tiny improvements in partlyObservedNetwork (less storage)
missSBM 1.0.0 [2021-05-25]
CRAN release: 2021-05-25
- now rely on future_lapply for parallel computing (plan to be set by the user)
- faster model exploration (used to be called ‘smoothing’), now integrated by default in estimateMissSBM
- Use sparse Matrices to encode 0 and NAs
- complete rewriting of optimization routines (E and M steps) with C++ armadillo routines
- Better initialization and embedded C++ kmeans implementation
- important bug fix in MAR case
- bug fix in inference on covariates
- bug fixed in blockDyad-sampling
- missSBM::SimpleSBM_fit_missSBM now inherits from from sbm::SimpleSBM rather than sbm::SimpleSBM_fit
- change field ‘networkData’ to comply with new interface in sbm
- defunct functions estimate, sample and simulate are no longer supported
missSBM 0.3.0 [2020-11-18]
CRAN release: 2020-11-18
- changing interface after suggestion from JSS reviewers
- updated documentation
- interfacing with package sbm
- change estimate to estimateMissSBM
- change sample to observedNetwork
- use sbm::sampleSimpleSBM instead of missSBM::simulate
- export less R6 classes for simplification (internal use only)
- some bug fixes
- updated maintainer (julien.chiquet@inra.fr -> julien.chiquet@inrae.fr)
missSBM 0.2.2 [2020-09-30]
- unexporting sampledNetwork, only use internally
- merging prepare_data with estimate
- enhanced documentation
- moving ownership to großBM