step_AIC | R Documentation |
Front-ends to stepAIC
and dropterm
with changed defaults.
step_BIC
implements a stepwise selection with BIC as the criterion and
step_GIC
uses an experimental criterion with a penalty midway between AIC and BIC: the
"Goldilocks" criterion.
step_AIC(object, ..., trace = 0, k = 2) step_BIC(object, ..., trace = 0, k = max(2, log(nobs(object)))) step_GIC(object, ..., trace = 0, k = (2 + log(nobs(object)))/2) drop_term( object, ..., test = default_test(object), k, sorted = TRUE, decreasing = TRUE, delta = TRUE ) add_term( object, ..., test = default_test(object), k, sorted = TRUE, decreasing = TRUE, delta = TRUE )
object |
as for |
... |
additional arguments passed on to main function in |
trace, k |
as for |
sorted, test |
as for |
decreasing |
in |
delta |
Should the criterion be displayed (FALSE) or the change in the in the criterion relative to the present model (TRUE)? |
A fitted model object after stepwise refinement, or a data frame with extra class membership for single term functions.
fm <- glm.nb(Days ~ .^3, quine) drop_term(fm_aic <- step_AIC(fm)) drop_term(fm_bic <- step_BIC(fm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.