natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates

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. For more details, see Brumberg et al. (2022) <doi:10.1111/rssa.12848> and Brumberg et al.(2023) <doi:10.1093/jrsssc/qlad010>. To solve the linear program, the 'Gurobi' commercial optimization software is recommended, but not required. The 'gurobi' R package can be installed by following the instructions at <https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html> after claiming your free academic license at <https://www.gurobi.com/academia/academic-program-and-licenses/>.

Version: 2.0.1
Depends: R (≥ 2.10), caret
Imports: Rglpk, stats, plyr, pps, sampling, ggplot2, rlang, ramify, slam
Suggests: knitr, rmarkdown, markdown, testthat (≥ 3.0.0), DT, stringr, covr, gurobi
Published: 2026-02-03
DOI: 10.32614/CRAN.package.natstrat
Author: Katherine Brumberg [aut, cre]
Maintainer: Katherine Brumberg <kbrum at umich.edu>
BugReports: https://github.com/kkbrum/natstrat/issues
License: GPL-3
URL: https://github.com/kkbrum/natstrat, https://kkbrum.github.io/natstrat/, https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html
NeedsCompilation: no
Citation: natstrat citation info
Materials: README, NEWS
CRAN checks: natstrat results

Documentation:

Reference manual: natstrat.html , natstrat.pdf
Vignettes: Introduction to natstrat (source, R code)

Downloads:

Package source: natstrat_2.0.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: natstrat_2.0.1.zip
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): natstrat_2.0.1.tgz, r-oldrel (x86_64): natstrat_2.0.1.tgz
Old sources: natstrat archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=natstrat to link to this page.