| NormalBlockMeanCollectionSparsity | R Documentation |
R6 class for a collection of mean-block models (NormalBlockMeanBase) with a fixed clustering (or a fixed number of blocks) and different sparsity levels applied to the p x p precision matrix of the variables. Mirrors NormalBlockVarCollectionSparsity, StARS included; the default penalty grid is read off the covariance of the least-squares residuals.
NormalBlockCollection -> NormalBlockCollectionSparsity -> NormalBlockMeanCollectionSparsity
NormalBlockMeanCollectionSparsity$new()Create a new NormalBlockMeanCollectionSparsity object.
NormalBlockMeanCollectionSparsity$new( mydata, blocks, zero_inflation = FALSE, control = NB_control() )
mydataobject of NormalBlockData class, with responses and design matrix
blockseither a clustering matrix (known, fixed clustering) or a single integer (number of blocks to infer)
zero_inflationmust be FALSE: the path penalizes a full Sigma,
which zero-inflated mean-block models do not carry
controlstructured list of parameters to handle sparsity control
A new NormalBlockMeanCollectionSparsity object
NormalBlockMeanCollectionSparsity$clone()The objects of this class are cloneable with this method.
NormalBlockMeanCollectionSparsity$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 = 3, sparsity = TRUE, model = "mean",
control = NB_control(n_sparsity_penalties = 5))
plot(models, criteria = c("BIC", "EBIC"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.