Performs k-fold cross validation for GGAMs
1 2 |
formula |
a PLBPSM formula. These are exactly like the formula for a GLM except that univariable and bivariate smooth terms. |
data |
A data frame or list containing the model response variable and
covariates required by the formula. By default the variables are taken from
environment( |
kfold |
number of folds splitted |
repeat.times |
repeated times for cross validation |
family |
This is a family object specifying the distribution and link to use in fitting etc. See glm and family for more details. |
group |
whether model identification is conducted for each covariates |
... |
other arguments. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.