natstrat-package {natstrat} | R Documentation |
natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates
Description
Natural strata fix a constant ratio of controls to treated units within each stratum. This ratio need not be an integer. The control 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 here.
Details
To achieve the desired ratio of control to treated units,
a subset of control units are
chosen using by optimizing the balance of many covariates using
either randomized rounding of a linear program or
an integer program. The main function in this package is optimize_controls()
.
To create the input constraints for this function, you should use
generate_constraints()
.
Author(s)
Maintainer: Katherine Brumberg kbrum@wharton.upenn.edu
See Also
Useful links:
-
https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html
Report bugs at https://github.com/kkbrum/natstrat/issues