Type: Package
Package: traumar
Title: Calculate Metrics for Trauma System Performance
Version: 1.2.5
Authors@R: c(
    person("Nicolas", "Foss", , "nicolas.foss@hhs.iowa.gov", role = c("aut", "cre")),
    person("Iowa Department of Health and Human Services", role = "cph")
  )
Description: Hospitals, hospital systems, and even trauma systems that
    provide care to injured patients may not be aware of robust metrics
    that can help gauge the efficacy of their programs in saving the lives
    of injured patients.  'traumar' provides robust functions driven by
    the academic literature to automate the calculation of relevant
    metrics to individuals desiring to measure the performance of their
    trauma center or even a trauma system.  'traumar' also provides some
    helper functions for the data analysis journey. Users can refer to the
    following publications for descriptions of the methods used in
    'traumar'.  TRISS methodology, including probability of survival, and
    the W, M, and Z Scores - Flora (1978)
    <doi:10.1097/00005373-197810000-00003>, Boyd et al. (1987,
    PMID:3106646), Llullaku et al. (2009) <doi:10.1186/1749-7922-4-2>,
    Singh et al. (2011) <doi:10.4103/0974-2700.86626>, Baker et al. (1974,
    PMID:4814394), and Champion et al. (1989)
    <doi:10.1097/00005373-198905000-00017>. For the Relative Mortality
    Metric, see Napoli et al. (2017) <doi:10.1080/24725579.2017.1325948>,
    Schroeder et al. (2019) <doi:10.1080/10903127.2018.1489021>, and
    Kassar et al. (2016) <doi:10.1177/00031348221093563>. For more
    information about methods to calculate over- and under-triage in
    trauma hospital populations and samples, please see the following
    publications - Peng & Xiang (2016) <doi:10.1016/j.ajem.2016.08.061>,
    Beam et al. (2022) <doi:10.23937/2474-3674/1510136>, Roden-Foreman et
    al. (2017) <doi:10.1097/JTN.0000000000000283>.
License: MIT + file LICENSE
URL: https://bemts-hhs.github.io/traumar/,
        https://github.com/bemts-hhs/traumar
BugReports: https://github.com/bemts-hhs/traumar/issues
Depends: R (>= 4.1)
Imports: cli, dplyr (>= 1.1.4), ggplot2 (>= 3.5.2), glue, hms (>=
        1.1.3), infer (>= 1.0.8), lifecycle, lubridate (>= 1.9.4),
        nemsqar (>= 1.1.0), nortest (>= 1.0-4), patchwork (>= 1.3.1),
        purrr (>= 1.0.4), rlang, stats, stringr (>= 1.5.1), tibble (>=
        3.3.0), tidyr (>= 1.3.1), tidyselect (>= 1.2.1), utils
Suggests: broom, testthat (>= 3.0.0)
Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.3.3
NeedsCompilation: no
Packaged: 2026-04-16 21:31:19 UTC; nfoss0
Author: Nicolas Foss [aut, cre],
  Iowa Department of Health and Human Services [cph]
Maintainer: Nicolas Foss <nicolas.foss@hhs.iowa.gov>
Repository: CRAN
Date/Publication: 2026-04-16 21:50:02 UTC
Built: R 4.6.0; ; 2026-05-04 04:16:40 UTC; windows
