View source: R/RunCrossValidation.R
Helper function for running variable selection and cross-validation. Source: https://uc-r.github.io/model_selection. See section 6.1 of Introduction to Statistical Learning.
1 | PredictRegsubsets(dv, object, newdata, id, ...)
|
object |
regsubsets object. Object returned from the leaps::regsubsets function. No default |
newdata |
matrix. Data on which to make predictions. No default. |
id |
Numeric vector of length 1. Model id. No default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.