Helper function for cross-validation; sampling part
1 | get_cv_error(model.formula, data, nvars)
|
model.formula |
The formula for the model |
data |
The dataframe containing the regression data |
nvars |
The max number of variables to use in the best subset model |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.