getBestQ: optimal number of SBM blocks

Description Usage Arguments Value Examples

View source: R/VEMalgorithm.R

Description

returns the number of SBM blocks that maximizes the ICL

Usage

1
getBestQ(bestSolutionAtQ)

Arguments

bestSolutionAtQ

output of fitNSBM(), i.e. a list of estimation results for varying number of latent blocks

Value

a list the maximal value of the ICL criterion among the provided solutions along with the best number of latent blocks

Examples

1
2
# res_gauss is the output of a call of fitNSBM()
getBestQ(res_gauss)

noisySBM documentation built on Dec. 16, 2020, 5:09 p.m.