It would be good to have an initial_group_split(data, group, strata, prop) method that can split the data when there are groups (perhaps patients). The strata option might be difficult when the outcome (or other stratification variable) is not constant within each group. We could also use the median or mode on the stratification variable and use that.
Similarly, a mc_group_cv() function would also be a good idea (using the splitting method as above).
It would be good to have an
initial_group_split(data, group, strata, prop)method that can split the data when there are groups (perhaps patients). Thestrataoption might be difficult when the outcome (or other stratification variable) is not constant within each group. We could also use the median or mode on the stratification variable and use that.Similarly, a
mc_group_cv()function would also be a good idea (using the splitting method as above).