View source: R/summarize_measure.R
summarize_measure | R Documentation |
Calculates measure numerator, denominator, proportions, and optional confidence intervals for a NEMSQA measure. This function summarizes the information for a specified population and measure, returning a tibble with the calculated values. If requested, the function can also calculate confidence intervals for the proportions using either the Wilson score interval or the Clopper-Pearson exact binomial interval.
summarize_measure(
data,
measure_name,
population_name,
numerator_col,
confidence_interval = FALSE,
method = c("wilson", "clopper-pearson"),
conf.level = 0.95,
correct = TRUE,
...
)
A summarized data frame containing:
measure
: The measure name.
pop
: The population group.
numerator
: The count of qualifying events.
denominator
: The total count of records.
prop
: The proportion of qualifying events.
prop_label
: A formatted percentage representation of prop
(when confidence_interval = FALSE
).
lower_ci
, upper_ci
: The lower and upper confidence interval bounds
(when confidence_interval = TRUE
).
Samuel Kordik, BBA, BS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.