newAIC: Compute the AIC of a model given some data

newAICR Documentation

Compute the AIC of a model given some data

Description

Given a statistical model and some data, this function computes the AIC of the model given the data, i.e., the AIC of the data under the model.

Usage

newAIC(model, x)

## S4 method for signature 'newmodel,matrix'
newAIC(model, x)

Arguments

model

an object that describes a statistical model.

x

an object that describes data.

Value

the AIC of the model.

Functions

  • newAIC,newmodel,matrix-method: returns the AIC of the NB model.

Examples

m <- newmodel(n=5, J=10)
x <- newSim(m)
newAIC(m, x$counts)

fedeago/NewWave documentation built on March 28, 2022, 5:46 a.m.