Learn R Programming

ESTER (version 0.2.0)

bic: Computes the Bayesian Information Criterion

Description

Computes the Bayesian Information Criterion of a model (Schwarz, 1978).

Usage

bic(mod)

Arguments

mod

A fitted model of class lm or merMod.

References

Schwarz, G. (1978). Estimating the dimension of a model. Annals of Statistics, 6, 461-464.

See Also

aic, ictab

Examples

Run this code
# NOT RUN {
data(mtcars)
mod1 <- lm(mpg ~ cyl, mtcars)
bic(mod1)

# }

Run the code above in your browser using DataLab