BIC(object)
object
|
an object inheriting from class logLik , usually
resulting from applying a logLik method to a fitted model
object.
|
logLik
, according to the formula
log-likelihood +
npar*log(nobs), where npar represents the number of
parameters and nobs the number of observations in the
fitted model. When comparing fitted objects, the smaller the BIC, the
better the fit.BIC
, logLik
, AIC
data(Orthodont) fm1 <- lm(distance ~ age, data = Orthodont) BIC(logLik(fm1))