
Last chance! 50% off unlimited learning
Sale ends in
This generic function selects a model by different criteria in a stepwise algorithm.
step(object, scope, criteria, direction, trace, steps, ...)# S3 method for default
step(object, ...)
an object of type "emdi","model" or a lm
object.
formula or a list including two formulas (lower
and
upper
) specifying the models considered in the step function.
Defaults to NULL
.
a character string describing the model selection criterion.
a character string describing the direction of stepwise
algorithm. Directions that can be chosen are "both
", "backward
"
or "forward
". Defaults to "both
". If no scope
argument is
provided, the default is "backward
".
if TRUE
, information about the single steps is
provided during the stepwise procedure. Defaults to TRUE
.
a number determining the maximum number of steps. Defaults to 1000.
arguments to be passed to or from other methods.
The return of step
depends on the class of its argument. The
documentation of particular methods gives detailed information about the
return of that method.
The default method of the generic function step
applies the step
function for lm
models of the stats package.
Please refer to the documentation of the step
function of
the stats package for details.