cut_quant {triplesmatch} | R Documentation |
Create strata based on quantiles of a score
Description
Create strata based on quantiles of a score
Usage
cut_quant(v, q, int = TRUE)
Arguments
v |
Vector of scores (typically propensity scores) |
q |
Vector of desired quantiles (between 0 and 1) at which to cut the strata |
int |
Boolean whether to return strata as integers. Default is 'TRUE' |
Value
Vector of strata
Examples
cut_quant(1:9, c(1/3, 2/3), int = TRUE)
[Package triplesmatch version 1.1.0 Index]