plot.ssvs {SSVS} | R Documentation |
Plot results of an SSVS model
Description
Plot results of an SSVS model
Usage
## S3 method for class 'ssvs'
plot(x, threshold = 0.5, legend = TRUE, title = NULL, color = TRUE, ...)
Arguments
x |
An SSVS result object obtained from |
threshold |
An MIP threshold to show on the plot, must be between 0-1.
If |
legend |
If |
title |
The title of the plot. Set to |
color |
If |
... |
Ignored |
Value
Creates a plot of the inclusion probabilities by variable
Examples
outcome <- "qsec"
predictors <- c("cyl", "disp", "hp", "drat", "wt", "vs", "am", "gear", "carb", "mpg")
results <- ssvs(x = predictors, y = outcome, data = mtcars, progress = FALSE)
plot(results)
[Package SSVS version 2.0.0 Index]