| ZINormalBlockMeanUnknownClusters | R Documentation |
R6 class for a zero-inflated Normal-Block-Mean model with a fixed number of clusters (but unknown clustering), inferred by variational EM. Sigma is diagonal or spherical here. See NormalBlockMeanBase for why a full one is out of reach under a mask.
NormalBlockBase -> NormalBlockMeanBase -> ZINormalBlockMeanUnknownClusters
var_para list with the variational parameter: tau (posterior group probabilities)
model_parthe parameters of NormalBlockMeanBase (B, Omega), plus B0 (zero-inflation coefficients), kappa (zero-inflation probabilities) and alpha (cluster proportions)
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()ZINormalBlockMeanUnknownClusters$new()Create a new ZINormalBlockMeanUnknownClusters object.
ZINormalBlockMeanUnknownClusters$new( data, q, sparsity = 0, control = NB_control() )
dataobject of NormalBlockData class, with responses and design matrix
qnumber of clusters
sparsityunused here, kept for signature symmetry (must be 0)
controlstructured list of more specific parameters, to generate with NB_control
A new ZINormalBlockMeanUnknownClusters object
ZINormalBlockMeanUnknownClusters$clone()The objects of this class are cloneable with this method.
ZINormalBlockMeanUnknownClusters$clone(deep = FALSE)
deepWhether to make a deep clone.
ex <- generate_normal_block_mean_data(n = 50, p = 20, d = 1, q = 3)
Y <- ex$Y; Y[runif(length(Y)) < 0.2] <- 0
data <- NormalBlockData$new(Y, ex$X)
model <- normal_block(data, blocks = 3, model = "mean", zero_inflation = TRUE)
model$clustering
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.