# Packages
library(dplyr)
library(traumar)
# Simulated data for SEQIC Indicator 13
test_data <- tibble::tibble(
id = as.character(1:12),
trauma_level = c("I", "II", "III", "IV", "I", "II", "III", "IV", "I", "II",
"III", "IV"),
validity = c(90, 80, 88, 92, 86, 75, 89, 70, 95, 85, 83, 87)
)
# Run the function
traumar::seqic_indicator_13(
data = test_data,
level = trauma_level,
included_levels = c("I", "II", "III", "IV"),
unique_incident_id = id,
validity_score = validity,
validity_threshold = 85,
calculate_ci = "wilson"
)
Run the code above in your browser using DataLab