Usage
step.lmRob(object, scope, scale, direction = c("both", "backward", "forward"), trace = TRUE, keep = NULL, steps = 1000, fast = FALSE, ...)
Arguments
scope
either a formula or a list with elements lower
and upper
each of which is a formula. The terms in the right-hand-side of lower
are always included in the model and the additional terms in the right-hand-side of
scale
a single numeric value containing a residual scale estimate. If missing, the scale estimate in object
is used.
direction
a character value specifying the mode of stepwise search. The possibilities are "both", "backward", and "forward", with a default of "backward". Presently only "backward" stepwise searches are implemented.
trace
a logical value. If TRUE
, information is printed during stepwise search.
keep
a filter function whose input is a fitted model object and the associated AIC statistic, and whose output is arbitrary. Typically keep will select a subset of the components of the object and return them. The default is not to keep anything.
steps
an integer value specifying the the maximum number of steps to be considered. The default is 1000 (essentially as many as required). It is typically used to stop the process early.
fast
a logical value. If TRUE
the robust initial estimate (used when fitting each of the reduced models) is replaced by a weighted least squares estimate using the robust weights computed for the current fit.
...
additional arguments required by the generic step function.