Cross-validation estimate of predictive accuracy for clustered data
Cross-validation estimate of predictive accuracy for clustered data
This function adapts cross-validation to work with clustered categorical outcome data. For example, there may be multiple observations on individuals (clusters). It requires a fitting function that accepts a model formula.
cvparts: Use, if required, to specify the precise folds used for the cross-validation. The comparison between different models will be more accurate if the same folds are used.
seed: Set seed, if required, so that results are exactly reproducible