View source: R/get_strata_breaks.R
get_strata_breaks | R Documentation |
Stratify based upon the propensity scores.
get_strata_breaks(ps, n_strata = 5, labels = LETTERS[1:n_strata])
ps |
vector containing the propensity scores. |
n_strata |
number of strata. |
labels |
labels for the strata. |
a list with two elements:
a numeric vector with the breaks returned from [stats::quantile()].
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.