get_strata_breaks: Stratify based upon the propensity scores.

View source: R/get_strata_breaks.R

get_strata_breaksR Documentation

Stratify based upon the propensity scores.

Description

Stratify based upon the propensity scores.

Usage

get_strata_breaks(ps, n_strata = 5, labels = LETTERS[1:n_strata])

Arguments

ps

vector containing the propensity scores.

n_strata

number of strata.

labels

labels for the strata.

Value

a list with two elements:

breaks

a numeric vector with the breaks returned from [stats::quantile()].

labels

a data frame with four columns: strata, xmin (lower bound for the stratum), xmax (upper bound for the stratum), and xmid (midpoint of the stratum).


jbryer/psa documentation built on Nov. 17, 2023, 8:21 a.m.