Skip to contents

Summarizes a fitted normal-block model: model type, goodness-of-fit criteria, cluster sizes, and the density of the inferred network between blocks.

Usage

# S3 method for class 'NormalBlockBase'
summary(object, ...)

Arguments

object

An object of class NormalBlockBase.

...

not used, only here for S3 compatibility

Value

An object of class summary.NormalBlockBase (a list with the model's who_am_I, criteria, cluster_sizes and network density), printed with a dedicated print.summary.NormalBlockBase() method.

Examples

ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
summary(model)
#> A diagonal normal-block-var model with 3 unknown clusters.
#> ===========================================================================
#>  nb_param q n_edges sparsity   loglik deviance      BIC      ICL     EBIC niter
#>        48 3       3        0 -667.394 1334.787 1520.732 1520.732 1527.323    10
#> ===========================================================================
#> * Cluster sizes: 5, 10, 5
#> * Network: 3 edge(s), density = 1