Summarizes the match between cross-validation subgroups and analysis subgroups.
Value
List with indicators for any match, exact match, one match, and
covariate-specific matches, one value per fold (sg1[i],
sg2[i] are the factor labels of fold i's subgroup,
NA for an empty slot):
- any_found
1 if the fold found a subgroup (either slot not
NA), else 0.- exact_match
1 if the fold's subgroup is the full-data subgroup
sg_analysis, else 0. For a two-factorsg_analysis, both factors appear in the fold's two slots, in either order. For a one-factorsg_analysis, the fold's subgroup is that factor alone: one slot holds it and the other isNA. A fold subgroup that combines it with a second factor is not exact; it counts inone_match.- one_match
1 if at least one full-data factor appears in either slot, else 0.
- cov1_any, cov2_any
1 if the fold's subgroup uses the covariate of the first (second) full-data factor, with any cut (see
find_covariate_any_match), else 0.- cov1_exact, cov2_exact
1 if the first (second) full-data factor appears in either slot, else 0.
cov2_any and cov2_exact are NA unless
sg_analysis has two factors. A comparison with NA
counts as 0. When sg_analysis has no element, or more than
two, exact_match, one_match, cov1_any and
cov1_exact are 0 for every fold.