Learn R Programming

triplesmatch (version 1.1.0)

cut_quant: Create strata based on quantiles of a score

Description

Create strata based on quantiles of a score

Usage

cut_quant(v, q, int = TRUE)

Value

Vector of strata

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`

Examples

Run this code
cut_quant(1:9, c(1/3, 2/3), int = TRUE)

Run the code above in your browser using DataLab