plot.TrainedSLOPE | R Documentation |
Plot results from cross-validation
## S3 method for class 'TrainedSLOPE'
plot(
x,
plot_min = TRUE,
ci_alpha = 0.2,
ci_border = NA,
ci_col = "salmon",
plot_args = list(),
polygon_args = list(),
lines_args = list(),
abline_args = list(),
index = NULL,
measure,
...
)
x |
an object of class |
plot_min |
whether to mark the location of the penalty corresponding to the best prediction score |
ci_alpha |
alpha (opacity) for fill in confidence limits |
ci_border |
color (or flag to turn off and on) the border of the confidence limits |
ci_col |
color for border of confidence limits |
plot_args |
list of additional arguments to pass to |
polygon_args |
list of additional arguments to pass to
|
lines_args |
list of additional arguments to pass to
|
abline_args |
list of additional arguments to pass to
|
index |
an optional index, to plot only one (the index-th) set of the parameter combinations. |
measure |
any of the measures used in the call to |
... |
ignored |
A plot for every value of q
is produced on the current device.
trainSLOPE()
Other model-tuning:
cvSLOPE()
,
trainSLOPE()
# Cross-validation for a SLOPE binomial model
set.seed(123)
tune <- cvSLOPE(subset(mtcars, select = c("mpg", "drat", "wt")),
mtcars$hp,
q = c(0.1, 0.2),
n_folds = 10
)
plot(tune, ci_col = "salmon", index = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.