Description Usage Arguments Value Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 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.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.