| NormalBlockMeanBase | R Documentation |
R6 abstract class for the Normal-Block models where the clustering structures the mean (mu_i = C B' X_i).
NormalBlockBase -> NormalBlockMeanBase
model_para list with the model parameters: B (d x q, one
profile per cluster) and Omega (p x p precision matrix of the
residuals), on the scale of the fit (see coef() and sigma()).
fittedY values predicted by the model, in Y's original units:
X B C' (with the posterior cluster probabilities as C when the
clustering is unknown), with the observed zeros of zero-inflated models
set to 0
sparsity_weights(weights associated to each pair of groups)
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$new()Create a new NormalBlockMeanBase object.
NormalBlockMeanBase$new( data, q, sparsity = 0, control = NB_control(), zero_inflation = FALSE )
dataobject of NormalBlockData class, with responses and design matrix
qnumber of block/cluster
sparsitysparsity penalty on the network density
controlstructured list of more specific parameters, to generate with NB_control
zero_inflationwhether the concrete subclass models zero-inflation; set by the ZI subclasses themselves, not meant to be set by the end user.
A new NormalBlockMeanBase object
NormalBlockMeanBase$predict()Predicts the mean of Y for new covariates X, in Y's
original units: mu_i = C B' X_i, with the posterior cluster
probabilities as C when the clustering is unknown (as in fitted()).
NormalBlockMeanBase$predict(new_X)
new_Xnew set of covariates.
A n*p prediction matrix for new observations
NormalBlockMeanBase$split()Create a clone of the current NormalBlockMeanBase
object after splitting cluster index. Unlike the variance-block
family, Omega and the sparsity weights are p x p here and do not
depend on q, so they carry over unchanged; only C (tau) and B (one
column per cluster) are affected.
NormalBlockMeanBase$split(index, in_place = FALSE, rule = NULL)
indexindex (integer) of the cluster to split
in_placeshould the split be applied to the object itself, or should a copy be sent? Default FALSE (send a copy)
rulehow the members of the cluster are divided: "kmeans"
runs a 2-means on their fitted mean trajectories X B_ols; "noise"
cuts them at the median of their noise variance 1 / diag(Omega).
Default NULL, i.e. "noise" for this family.
A new NormalBlockMeanBase object
NormalBlockMeanBase$merge()Create a clone of the current NormalBlockMeanBase
object after merging clusters indices
NormalBlockMeanBase$merge(indices, in_place = FALSE)
indicesindices (couple of integer) of the clusters to merge
in_placeshould the merge be applied to the object itself, or should a copy be sent? Default FALSE (send a copy)
A new NormalBlockMeanBase object
NormalBlockMeanBase$clone()The objects of this class are cloneable with this method.
NormalBlockMeanBase$clone(deep = FALSE)
deepWhether to make a deep clone.
# An internal abstract base class, never instantiated directly -- use
# NormalBlockMeanKnownClusters / NormalBlockMeanUnknownClusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.