Stepwise model construction and inspection
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 |
|
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.