Learn R Programming

StepReg (version 1.5.4)

plot.StepReg: Plots from a StepReg object

Description

plot.StepReg visualizes the variable selection procedure using a StepReg object

Usage

# S3 method for StepReg
plot(x, num_digits = 6, ...)

Value

A list of plots comprising the selection detail plot and selection summary plot for each strategy.

Arguments

x

StepReg object

num_digits

The number of digits to keep when rounding the results. Default is 6.

...

Not used

Examples

Run this code
if (FALSE) {
data(mtcars)
formula <- mpg ~ .
x <- stepwise(formula = formula,
              data = mtcars,
              type = "linear",
              strategy = c("forward","bidirection","backward"),
              metric = c("AIC","BIC","SL"))
plot(x)
}

Run the code above in your browser using DataLab