| NormalBlockMeanKnownClusters | R Documentation |
R6 class for a Normal-Block-Mean model with a known clustering.
NormalBlockBase -> NormalBlockMeanBase -> NormalBlockMeanKnownClusters
NormalBlockBase$best_of_inits()NormalBlockBase$candidates_merge()NormalBlockBase$candidates_split()NormalBlockBase$heldout_loglik()NormalBlockBase$latent_network()NormalBlockBase$optimize()NormalBlockBase$plot()NormalBlockBase$plot_loglik()NormalBlockBase$plot_network()NormalBlockBase$print()NormalBlockBase$update()NormalBlockBase$warm_start_from()NormalBlockMeanBase$merge()NormalBlockMeanBase$predict()NormalBlockMeanBase$split()NormalBlockMeanKnownClusters$new()Create a new NormalBlockMeanKnownClusters object.
NormalBlockMeanKnownClusters$new(data, C, sparsity = 0, control = NB_control())
dataobject of NormalBlockData class, with responses and design matrix
Cp x q clustering matrix, C_jk = 1 if variable j belongs to cluster k
sparsityto apply on variance matrix when calling GLASSO
controlstructured list of more specific parameters, to generate with NB_control
A new NormalBlockMeanKnownClusters object
NormalBlockMeanKnownClusters$clone()The objects of this class are cloneable with this method.
NormalBlockMeanKnownClusters$clone(deep = FALSE)
deepWhether to make a deep clone.
ex <- generate_normal_block_mean_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
model <- normal_block(data, blocks = ex$parameters$C, model = "mean")
plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.