Skip to contents

R6 class for a generic normal model

R6 class for a generic normal model

Public fields

Y

the matrix of responses

X

the matrix of covariates

X0

the matrix of zero-inflation covariates, if applicable

n

sample size

d

number of covariates

d0

number of zero-inflation covariates, if applicable

p

number of variables

XtXm1

inverse of XtX, useful for inference

XtY

useful for inference

npY

total number of non zeros in Y

nY

total number of non zeros for each column/variable in Y

zeros

where are the zero in Y

zeros_bar

where are the non-zeros in Y

Methods

Public methods


Method new()

Create a new [`NBData`] object.

Usage

NBData$new(Y, X, X0 = NULL)

Arguments

Y

the matrix of responses (called Y in the model).

X

design matrix (called X in the model).

X0

zero-inflation design matrix, if applicable.


Method clone()

The objects of this class are cloneable with this method.

Usage

NBData$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.