Investigate the results of cluster stability from MCMC sweeps. Shows the empirical CDF of the pairwise probability/proportion of two nodes residing in the same block over the given MCMC sweeps.

visualize_propensity_dist(sbm, isolate_type = NULL)

Arguments

sbm

Object of class sbm_network.

isolate_type

Node type to be isolated for visualization. If left empty all types are included.

Value

GGplot2 plot containing ECDF of the pairwise propensities of residing in same block for MCMC sweeps.

Details

sbmr::mcmc_sweep(sbm, track_pairs = TRUE, ...) must be run on object before this function.

See also

Examples

# Simulate a model net <- sim_basic_block_network(n_blocks = 3, n_nodes_per_block = 25) %>% initialize_blocks(3) %>% mcmc_sweep(num_sweeps = 75, track_pairs = TRUE) # Plot results visualize_propensity_dist(net)