Skip to contents

Calculates measure numerator, denominator, and proportions for a NEMSQA measure and each population.

Used throughout this package to calculate measure results.

Usage

results_summarize(
  total_population,
  adult_population,
  peds_population,
  measure_name,
  population_names = c(total = "All", adult = "Adults", peds = "Peds"),
  numerator_col,
  ...
)

Arguments

total_population

a dataframe or tibble containing the filtered and calculated fields.

adult_population

a dataframe or tibble containing the filtered and calculated fields.

peds_population

a dataframe or tibble containing the filtered and calculated fields.

measure_name

A string containing the measure description.

population_names

A list containing the population descriptions.

numerator_col

The tidyselect column containing the numerator.

...

(optional) additional arguments

Value

Results tibble

Author

Samuel Kordik, BBA, BS