logLik
, according to the formula
$-2 \mbox{log-likelihood} + n_{par} \log(n_{obs})$, where $n_{par}$ represents the number of
parameters and $n_{obs}$ the number of observations in the
fitted model. When comparing fitted objects, the smaller the BIC, the
better the fit.## S3 method for class 'logLik':
BIC(object, ...)
logLik
, usually
resulting from applying a logLik
method to a fitted model
object.BIC
, logLik
, AIC
data(Orthodont)
fm1 <- lm(distance ~ age, data = Orthodont)
BIC(logLik(fm1))
Run the code above in your browser using DataLab