newBIC {NewWave}R Documentation

Compute the BIC of a model given some data

Description

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

Usage

newBIC(model, x)

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

Arguments

model

an object that describes a statistical model.

x

an object that describes data.

Value

the BIC of the model.

Functions

Examples

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

[Package NewWave version 1.4.0 Index]