Description
Obtain Unweighted Natural Strata that Balance Many Covariates.
Description
Natural strata can be used in observational studies to balance the distributions of many covariates across any number of treatment groups and any number of comparisons. These strata have proportional amounts of units within each stratum across the treatments, allowing for simple interpretation and aggregation across strata. Within each stratum, the units are chosen using randomized rounding of a linear program that balances many covariates. To solve the linear program, the 'Gurobi' commercial optimization software is recommended, but not required. The 'gurobi' R package can be installed following the instructions at <https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html>.
README.md
natstrat
Natural strata can be used in observational studies to balance the distributions of many covariates across any number of treatment groups and any number of comparisons. These strata have proportional amounts of units within each stratum across the treatments, allowing for simple interpretation and aggregation across strata. Within each stratum, the units are chosen using randomized rounding of a linear program that balances many covariates.
Installation
You can install the released version from CRAN with:
install.packages("natstrat")
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("kkbrum/natstrat", build_vignettes = TRUE)
Usage
To learn about how to use this package, please see the associated vignette with:
browseVignettes(package = "natstrat")