Computes per-node stability given the empirical community structure and the
homogenized bootstrap memberships contained in a mixMN_fit object.
Stability is expressed as the proportion of bootstrap replications that
assign each node to its empirical (original) community.
Arguments
- fit
An object returned by
mixMN()(classmixMN_fit), containing$communities$original_membershipand$communities$boot_memberships. Bootstrap memberships must be available, i.e.reps > 0and"community" %in% boot_what.
Value
An object of class c("membershipStab"), with components:
membershipList with:
empiricalNamed integer vector of empirical community labels
bootstrapMatrix of homogenized bootstrap labels (
reps × p)
membership.stabilityList with:
empirical.dimensionsNamed numeric vector of node-level stability (proportion assigned to empirical community)
all.dimensionsMatrix (
p × K) with proportions of assignment to each community
community_paletteNamed vector of colors for communities, if available
Details
Bootstrap community labels are first aligned to the empirical solution using
EGAnet::community.homogenize(). Stability is then computed node-wise as
the proportion of bootstrap runs in which the node's community matches its
empirical assignment.
The returned object has class "membershipStab" and provides
print(), summary(), and plot() methods for quick
inspection, descriptive summaries, and visualization of node stability.
References
Christensen, A. P., & Golino, H. (2021). Estimating the Stability of Psychological Dimensions via Bootstrap Exploratory Graph Analysis: A Monte Carlo Simulation and Tutorial. Psych, 3(3), 479–500. doi:10.3390/psych3030032