Skip to contents

Summarizes a collection of normal-block models: model type, the full criteria table, and the range of q/sparsity explored.

Usage

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

Arguments

object

An object inheriting from NormalBlockCollection.

...

not used, only here for S3 compatibility

Value

An object of class summary.NormalBlockCollection (a list with the collection's who_am_I, criteria, q_range and sparsity_range), printed with a dedicated print.summary.NormalBlockCollection() 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)
models <- normal_block(data, blocks = 2:5, control = NB_control(verbose = FALSE))
summary(models)
#> A collection of diagonal normal-block-var models over q 
#> ===========================================================================
#>     q ranging from 2 to 5 
#> ===========================================================================
#>  nb_param q n_edges sparsity   loglik deviance      BIC      ICL     EBIC niter
#>        44 2       1        0 -591.923 1183.847 1355.060 1355.511 1356.446     8
#>        48 3       3        0 -469.088  938.176 1124.121 1124.121 1130.713    11
#>        53 4       6        0 -445.445  890.890 1095.479 1095.515 1112.114    14
#>        59 5      10        0 -445.448  890.896 1118.040 1118.076 1150.229    28