View source: R/RunCrossValidation.R
Run variable selection nested into cross-validation. Source: https://uc-r.github.io/model_selection. See section 6.1 of Introduction to Statistical Learning.
1 | RunCrossValidation(dv, data, k = 10, dir = "./", save.plot = TRUE)
|
dv |
Character vector of length 1. Dependent variable. No default. |
data |
data.frame object. Data as prepared in "RunProject.R". Regressor values, predicted response, and residuals. No default. |
k |
Numeric vector of length 1. Number of folds to use in k-fold cross-validation. Defaults to 10. |
dir |
Character vector of length 1. Directory in which to store the cv-plot. Defaults to "./" |
save.plot |
Logical vector of length 1. If TRUE then the mean cv error and all possible regression plots are saved to disk. Defaults to TRUE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.