View source: R/utility_functions.R
stratifyByPs | R Documentation |
Assigns individuals to strata based on their propensity scores.
stratifyByPs(
population,
numberOfStrata = 5,
stratificationColumns = c(),
baseSelection = "all"
)
population |
A data frame containing row IDs, treatment assignments, and propensity scores. |
numberOfStrata |
Number of strata to create. |
stratificationColumns |
Additional columns to use for stratification. |
baseSelection |
Defines which group is used to determine strata cutoffs ("all", "target", or "comparator"). |
A data frame with stratum assignments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.