| NormalBlockMeanCollectionClustersSparsity | R Documentation |
R6 class for a collection of mean-block models (NormalBlockMeanBase) over both a range of cluster counts (q) and a sparsity path, i.e. one NormalBlockMeanCollectionSparsity per q. Mirrors NormalBlockVarCollectionClustersSparsity.
NormalBlockCollection -> NormalBlockCollectionClustersSparsity -> NormalBlockMeanCollectionClustersSparsity
NormalBlockMeanCollectionClustersSparsity$clone()The objects of this class are cloneable with this method.
NormalBlockMeanCollectionClustersSparsity$clone(deep = FALSE)
deepWhether to make a deep clone.
ex <- generate_normal_block_mean_data(n = 60, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
models <- normal_block(data, blocks = 2:4, sparsity = TRUE, model = "mean",
control = NB_control(n_sparsity_penalties = 4))
plot(models, criterion = "BIC")
models$get_best_model("BIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.