Aggregates primary outcome metrics (event rate, Compliance Index
and - if present - median time-to-first-service) by the
resource column of the joined scenario metadata.
Usage
resource_comparison(
data,
scenarios = NULL,
metrics = c("event_rate", "compliance_index")
)Value
A tibble with one row per resource configuration and
columns resource, n_scenarios, n_reps, and for each
metric the median and 2.5%/97.5% quantile.
Examples
if (FALSE) { # \dontrun{
sim <- load_example_data()
resource_comparison(sim)
} # }