citHeader("To cite natstrat in publications use:")

pkg_version <- tryCatch(as.character(packageVersion("natstrat")), error = function(e) "")

bibentry(bibtype = "Manual",
         title = "natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates",
         author = person(given = "Katherine", family = "Brumberg"),
         year = 2024,
         note = if (nzchar(pkg_version)) paste("R package version", pkg_version) else "R package",
         url = "https://github.com/kkbrum/natstrat",
         textVersion = if (nzchar(pkg_version)) {
           paste("Brumberg, K. (2024). natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates. R package version", pkg_version, ". https://github.com/kkbrum/natstrat")
         } else {
           "Brumberg, K. (2024). natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates. R package. https://github.com/kkbrum/natstrat"
         }
)

bibentry(bibtype = "Article",
         title = "Using Randomized Rounding of Linear Programs to Obtain Unweighted Natural Strata that Balance Many Covariates",
         author = c(
           person(given = "Katherine", family = "Brumberg"),
           person(given = c("Dylan", "S"), family = "Small"),
           person(given = c("Paul", "R"), family = "Rosenbaum")
         ),
         journal = "Journal of the Royal Statistical Society Series A: Statistics in Society",
         year = 2022,
         volume = 185,
         number = 4,
         pages = "1931-1951",
         doi = "10.1111/rssa.12848",
         url = "https://doi.org/10.1111/rssa.12848",
         textVersion = "Brumberg, K., Small, D. S., & Rosenbaum, P. R. (2022). Using Randomized Rounding of Linear Programs to Obtain Unweighted Natural Strata that Balance Many Covariates. Journal of the Royal Statistical Society Series A: Statistics in Society, 185(4), 1931-1951. https://doi.org/10.1111/rssa.12848"
)

bibentry(bibtype = "Article",
         title = "Using natural strata when examining unmeasured biases in an observational study of neurological side effects of antibiotics",
         author = c(
           person(given = "Katherine", family = "Brumberg"),
           person(given = c("Darcy", "E"), family = "Ellis"),
           person(given = c("Dylan", "S"), family = "Small"),
           person(given = "Sean", family = "Hennessy"),
           person(given = c("Paul", "R"), family = "Rosenbaum")
         ),
         journal = "Journal of the Royal Statistical Society Series C: Applied Statistics",
         year = 2023,
         volume = 72,
         number = 2,
         pages = "314-329",
         doi = "10.1093/jrsssc/qlad010",
         url = "https://doi.org/10.1093/jrsssc/qlad010",
         textVersion = "Brumberg, K., Ellis, D. E., Small, D. S., Hennessy, S., & Rosenbaum, P. R. (2023). Using natural strata when examining unmeasured biases in an observational study of neurological side effects of antibiotics. Journal of the Royal Statistical Society Series C: Applied Statistics, 72(2), 314-329. https://doi.org/10.1093/jrsssc/qlad010"
)
