Skip to contents

R6 class for normal-block model with known block

R6 class for normal-block model with known block

Super class

normalblockr::NB -> NB_fixed_blocks

Active bindings

posterior_par

a list with the parameters of posterior distribution W | Y

entropy

Entropy of the conditional distribution

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 [`NB_fixed_blocks`] object.

Usage

NB_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 [`NB_fixed_blocks`] object


Method clone()

The objects of this class are cloneable with this method.

Usage

NB_fixed_blocks$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.