| NormalBlockVarCollectionSparsity | R Documentation |
R6 class for a collection of normal-block models with a fixed clustering (blocks) and different sparsity levels. The default penalty grid is read off the latent block covariance of a short unpenalized fit.
NormalBlockCollection -> NormalBlockCollectionSparsity -> NormalBlockVarCollectionSparsity
NormalBlockCollection$print()NormalBlockCollection$summary()NormalBlockCollectionSparsity$get_best_model()NormalBlockCollectionSparsity$get_model()NormalBlockCollectionSparsity$initialize()NormalBlockCollectionSparsity$optimize()NormalBlockCollectionSparsity$plot()NormalBlockCollectionSparsity$stability_selection()NormalBlockVarCollectionSparsity$clone()The objects of this class are cloneable with this method.
NormalBlockVarCollectionSparsity$clone(deep = FALSE)
deepWhether to make a deep clone.
ex <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
models <- normal_block(data, blocks = ex$parameters$C, sparsity = TRUE,
control = NB_control(verbose = FALSE, n_sparsity_penalties = 5))
models$get_best_model("BIC")$sparsity
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.