Learn R Programming

qpcR (version 1.2-2)

BIC: Bayesian Information Criterion

Description

Calculates the Bayesian Information Criterion for objects of class drc, lm, glm, nls or any other models from which logLik, coef and residuals can be extacted.

Usage

BIC(object)

Arguments

object
a fitted model.

Value

  • The BIC value.

Details

$$BIC = - 2 * logLik(object) + npar * log(nobs)$$ with npar = number of parameters, nobs = number of observations.

References

Schwartz GE (1978). Estimating the dimension of a model. Annals of Statistics, 6: 461-464.

See Also

AIC, logLik.

Examples

Run this code
m <- pcrfit(reps, 1, 2, l5)
BIC(m)

Run the code above in your browser using DataLab