Package: natstrat
Type: Package
Title: Obtain Unweighted Natural Strata that Balance Many Covariates
Version: 2.0.1
Authors@R: c(
    person("Katherine", "Brumberg", email = "kbrum@umich.edu", 
        role=c("aut", "cre")))
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. 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/>.
URL: https://github.com/kkbrum/natstrat,
        https://kkbrum.github.io/natstrat/,
        https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html
BugReports: https://github.com/kkbrum/natstrat/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Imports: Rglpk, stats, plyr, pps, sampling, ggplot2, rlang, ramify,
        slam
Depends: R (>= 2.10), caret
Suggests: knitr, rmarkdown, markdown, testthat (>= 3.0.0), DT, stringr,
        covr, gurobi
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-02-03 21:54:23 UTC; katherine
Author: Katherine Brumberg [aut, cre]
Maintainer: Katherine Brumberg <kbrum@umich.edu>
Repository: CRAN
Date/Publication: 2026-02-03 23:00:22 UTC
Built: R 4.6.0; ; 2026-02-28 05:12:59 UTC; windows
