Stratify data into two groups
Usage
wrapper_cut_2groups(x, probs = 0.5, cutoff = NULL, labels = NULL, right = TRUE)
wrapper_cut_2groups_strat(
x,
strata,
probs = rep(0.5, nlevels(strata)),
cutoff = NULL,
labels = NULL,
right = TRUE
)
Arguments
- x
Vector of continuous values to cut.