| NormalBlockVarUnknownClusters | R Documentation |
R6 class for a normal-block model with a fixed number of clusters (but unknown clustering).
NormalBlockBase -> NormalBlockVarBase -> NormalBlockVarUnknownClusters
model_parthe parameters of NormalBlockVarBase (B, B0, dm1, Omega), plus alpha (cluster proportions)
var_para list with the matrices of the variational parameters: M (means), S (variances), tau (posterior group probabilities)
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$predict()NormalBlockBase$print()NormalBlockBase$update()NormalBlockBase$warm_start_from()NormalBlockVarBase$merge()NormalBlockVarBase$split()NormalBlockVarBase$within_block_correlations()NormalBlockVarUnknownClusters$new()Create a new NormalBlockVarUnknownClusters object.
NormalBlockVarUnknownClusters$new( data, q, sparsity = 0, control = NB_control() )
datacontains the matrix of responses (Y) and the design matrix (X).
qrequired number of groups
sparsitysparsity penalty to add on blocks precision matrix for sparsity
controlstructured list for specific parameters
A new NormalBlockVarUnknownClusters object
NormalBlockVarUnknownClusters$clone()The objects of this class are cloneable with this method.
NormalBlockVarUnknownClusters$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)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
model$clustering
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.