powered by
Create strata based on quantiles of a score
cut_quant(v, q, int = TRUE)
Vector of strata
Vector of scores (typically propensity scores)
Vector of desired quantiles (between 0 and 1) at which to cut the strata
Boolean whether to return strata as integers. Default is `TRUE`
cut_quant(1:9, c(1/3, 2/3), int = TRUE)
Run the code above in your browser using DataLab