Description Usage Arguments Value Examples
Helper function to do a LOOCV on a gam or lm model
1 |
mod |
A model returned by a gam or lm fit |
k |
folds. k=1 is LOO, k=2 is LTO |
n |
samples. How many folds to use. |
LOO. |
Whether to return the LOO RSME and MdAE for the LOO models. If set to TRUE, function will be slow. |
A list with predictions (fitted), actual, errors (fitted-actual), MAE and RMSE. Also AIC and AICc are returned for the LOO models.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.