step.lmr: Stepwise model selection for a robust linear model

Description Usage Arguments Details

Description

Stepwise model selection for a robust linear model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
step.lmr(
  object,
  scope,
  target = "RFPE",
  direction = "backward",
  trace = TRUE,
  steps = 1000,
  k = 2,
  cores = NULL,
  ...
)

Arguments

object

An object fit by lmr.

scope

The lowest model to consider.

target

Character string giving the method for selecting models. Defaults to "RFPE", the only current alternative being "AIC".

direction

What direction to take steps in. Only "backwards" is implemented.

trace

Whether or not to report progress. Defaults to trace=TRUE.

steps

The maximum number of steps to take.

k

The penalty factor to be used if AIC is being used as the target. Defaults to k=2.

cores

The number of cores to use when running drop1.lmr in parallel. Defaults to cores=NULL and the function will try to guess how many cores to use.

...

Not used (for compatibility with step).

Details

The function uses robust finite prediction error to decide when to stop the selection process. In principle, other approaches could be implemented.


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.