traumar1.2.4 package

Calculate Metrics for Trauma System Performance

grapes-not_in-grapes

Check if Elements Are Not in a Vector

impute

Impute Numeric Column Values

is_it_normal

Exploratory Data Analysis, Normality Testing, and Visualization

nonlinear_bins

Create Nonlinear Probability of Survival Bins

normalize

Normalize a Numeric Vector

pretty_number

Convert Numbers into Readable Abbreviated Formats

pretty_percent

Format Numeric Variables as Percentages

probability_of_survival

Calculate Probability of Survival Using TRISS Method

rm_bin_summary

Bin-Level Summary for Relative Mortality Metric (RMM)

rmm

Relative Mortality Metric (RMM) Calculation

season

Get Season Based on a Date

seqic_indicator_1

SEQIC Indicator 1 – Trauma Team Response Evaluation

seqic_indicator_10

SEQIC Indicator 10 – Trauma Team Activation Appropriateness

seqic_indicator_11

SEQIC Indicator 11 – Overtriage for Minor Trauma Patients

seqic_indicator_12

SEQIC Indicator 12 - Timeliness of Data Entry Post-Discharge

seqic_indicator_13

SEQIC Indicator 13 – Validation of Trauma Registry Records

seqic_indicator_2

SEQIC Indicator 2 – Missing Incident Time

seqic_indicator_3

SEQIC Indicator 3 - Presence of Probability of Survival Calculations

seqic_indicator_4

SEQIC Indicator 4 - Autopsy and Long LOS Without Autopsy

seqic_indicator_5

SEQIC Indicator 5 - Alcohol and Drug Screening

seqic_indicator_6

SEQIC Indicator 6 - Delayed Arrival Following Low GCS

seqic_indicator_7

SEQIC Indicator 7 - Delayed Arrival to Definitive Care

seqic_indicator_8

SEQIC Indicator 8 - Survival by Risk Group

seqic_indicator_9

SEQIC Indicator 9 - Emergency Department Transfer Timeliness

small_count_label

Label Small Counts Based on a Cutoff

stat_sig

Assign Significance Codes Based on P-Values

theme_cleaner

Customizable Minimalistic ggplot2 Theme

trauma_case_mix

View the Current Patient Population Case Mix Compared to the Major Tra...

trauma_performance

Calculate Trauma Hospital Performance Based on Robust and Validated Me...

traumar-package

traumar: Calculate Metrics for Trauma System Performance

validate_character_factor

Validate a Character or Factor Input

validate_choice

Validate Choice

validate_class

Validate Class

validate_complete

Validate Complete Input

validate_data_pull

Validate Data Extraction

validate_data_structure

Validate Data Structure

validate_error_type

Validate Error Type

validate_length

Validate Length of an Input

validate_names

Validate Column Names

validate_numeric

Validate Numeric Input

validate_set

Validate Set Equality

weekend

Classify Dates as Weekday or Weekend

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>.

  • Maintainer: Nicolas Foss
  • License: MIT + file LICENSE
  • Last published: 2026-02-05