Calculates three common information criteria of models estimated by ols().
ols.infocrit(mod, which ="all", scaled =FALSE)
Arguments
mod: linear model object generated by ols().
which: string value specifying the type of criterion: "aic" (Akaike Information Criterion), "sic" (Schwarz Information Criterion), or "pc", (Prognostic Criterion), optional, if omitted then all criteria are returned ("all").
scaled: logical value which indicates whether criteria should be scaled by the number of observations T.
Returns
A data frame of AIC, SIC, and PC values.
Examples
wage.est <- ols(wage ~ educ + age, data = data.wage)ols.infocrit(wage.est)# Return all criteria unscaledols.infocrit(wage.est, scaled =TRUE)# Return all criteria scaledols.infocrit(wage.est, which ="pc")# Return Prognostic Criterion unscaled