ols.infocrit | R Documentation |
Calculates three common information criteria of models estimated by ols()
.
ols.infocrit(mod, which = "all", scaled = FALSE)
mod |
linear model object generated by |
which |
string value specifying the type of criterion: |
scaled |
logical value which indicates whether criteria should be scaled by the number of observations T. |
A data frame of AIC, SIC, and PC values.
wage.est <- ols(wage ~ educ + age, data = data.wage)
ols.infocrit(wage.est) # Return all criteria unscaled
ols.infocrit(wage.est, scaled = TRUE) # Return all criteria scaled
ols.infocrit(wage.est, which = "pc") # Return Prognostic Criterion unscaled
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.