kfold_lm | R Documentation |
Function for linear model and its results
kfold_lm(data, formula = "y ~ .", k = 10)
data |
Name of the data frame. |
formula |
Model in the format "y ~ x". Default: Predict variable y with all other variables. |
k |
Number of kfolds. Default: 10. |
kfold_lm(mtcars, "mpg ~ .")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.