cv_folding | R Documentation |
cv_folding
creates folds used in classifier training within the survey
data.
cv_folding(data, L2.unit, k.folds, cv.sampling = c("individuals", "L2 units"))
data |
The survey data; must be a tibble. |
L2.unit |
The column name of the factor variable identifying the context-level unit |
k.folds |
An integer value indicating the number of folds to be generated. |
cv.sampling |
Cross-validation sampling method. A character-valued
scalar indicating whether cross-validation folds should be created by
sampling individual respondents ( |
Returns a list with length specified by k.folds
argument. Each
element is a tibble with a fold used in k-fold cross-validation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.