Skip to contents

R6 class for a generic normal model

R6 class for a generic normal model

Super class

normalblockr::NB -> ZINB_fixed_blocks

Active bindings

posterior_par

a list with the parameters of posterior distribution W | Y

entropy

Entropy of the conditional distribution

nb_param

number of parameters in the model

model_par

a list with model parameters: B (covariates), dm1 (species variance), OmegaQ (groups precision matrix), kappa (zero-inflation probabilities)

fitted

Y values predicted by the model

who_am_I

a method to print what model is being fitted

Methods

Inherited methods


Method new()

Create a new [`ZINB_fixed_blocks_fixed_sparsity`] object.

Usage

ZINB_fixed_blocks$new(data, C, sparsity = 0, control = NB_control())

Arguments

data

object of NBData class, with responses and design matrix

C

clustering matrix C_jq = 1 if species j belongs to cluster q

sparsity

to apply on variance matrix when calling GLASSO

control

structured list of more specific parameters, to generate with NB_control

Returns

A new [`ZINB_fixed_blocks_fixed_sparsity`] object


Method clone()

The objects of this class are cloneable with this method.

Usage

ZINB_fixed_blocks$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.