Joins the folds that kfold_groups computed in separate calls into one criterion per equation.

kfold_combine(...)

Arguments

...

kfold_groups_part objects from the same fit, grouping, fold assignment and refit settings, or one list of them. A part returned by an earlier call with folds still unscored may be among them.

Value

Where every level of every equation has a score, one criterion of class c("kfold", "loo") per equation, or a named list of them for a model set, as kfold_groups returns. Otherwise a warning names the folds without a score, and a kfold_groups_part holds the scores and diagnostics so far. Pass it to kfold_combine() again with the parts that recompute those folds.

Details

The parts may be given in any order, and may repeat a fold. For each fold and equation the first scored result is used, so that a part recomputing a failed fold replaces it whether it comes before or after it.