plot.StepReg | R Documentation |
plot.StepReg visualizes the variable selection procedure using a StepReg object
## S3 method for class 'StepReg'
plot(
x,
strategy = attr(x, "nonhidden"),
process = c("overview", "details"),
num_digits = 6,
...
)
x |
StepReg object |
strategy |
Select which strategy to be displayed, default is the first name of StepReg object. |
process |
Select which process of stepwise regression to be displayed from 'details' and 'overview', default is 'overview'. |
num_digits |
The number of digits to keep when rounding the results. Default is 6. |
... |
Not used |
A list of plots comprising the selection detail plot and selection summary plot for each strategy.
## Not run:
data(mtcars)
formula <- mpg ~ .
x <- stepwise(formula = formula,
data = mtcars,
type = "linear",
strategy = c("forward","bidirection","subset"),
metric = c("AIC","BIC","SL"))
plot(x)
plot(x, strategy = "forward", process = "overview")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.