RunCrossValidation: RunCrossValidation

Description Usage Arguments

View source: R/RunCrossValidation.R

Description

Run variable selection nested into cross-validation. Source: https://uc-r.github.io/model_selection. See section 6.1 of Introduction to Statistical Learning.

Usage

1
RunCrossValidation(dv, data, k = 10, dir = "./", save.plot = TRUE)

Arguments

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


itslwg/regone documentation built on Oct. 14, 2021, 12:52 a.m.