zinbAIC: Compute the AIC or BIC of a model given some data

zinbAICR Documentation

Compute the AIC or BIC of a model given some data

Description

Given a statistical model and some data, these functions compute the AIC or BIC of the model given the data, i.e., the AIC/BIC of the data under the model.

Usage

zinbAIC(model, x)

zinbBIC(model, x)

## S4 method for signature 'ZinbModel,matrix'
zinbAIC(model, x)

## S4 method for signature 'ZinbModel,matrix'
zinbBIC(model, x)

Arguments

model

an object that describes a statistical model.

x

an object that describes data.

Value

the AIC/BIC of the model.

Functions

  • zinbAIC(model = ZinbModel, x = matrix): returns the AIC of the ZINB model.

  • zinbBIC(model = ZinbModel, x = matrix): returns the BIC of the ZINB model.

Examples

se <- SummarizedExperiment(matrix(rpois(60, lambda=5), nrow=10, ncol=6),
    colData = data.frame(bio = gl(2, 3)))
m <- zinbFit(se, X=model.matrix(~bio, data=colData(se)),
    BPPARAM=BiocParallel::SerialParam())
zinbAIC(m, t(assay(se)))
zinbBIC(m, t(assay(se)))

drisso/zinbwave documentation built on March 18, 2024, 5:13 p.m.