calculate_funnel_points | R Documentation |
For rate-based funnels: Derive rate and annual population values for charting based. Process removes rates where the rate type is dsr and the number of observed events are below 10.
calculate_funnel_points(
data,
numerator,
denominator,
rate,
rate_type = NULL,
years_of_data = NULL,
multiplier = NULL
)
data |
a data.frame containing the data to calculate control limits for; unquoted string; no default |
numerator |
field name from data containing the observed numbers of cases in the sample meeting the required condition (the numerator or observed counts for the control limits); unquoted string; no default |
denominator |
field name from data containing the population(s) in the sample (the denominator or expected counts for the control limits); unquoted string; no default |
rate |
field name from data containing the rate data when creating funnels for a Crude or Directly Standardised Rate; unquoted string; no default |
rate_type |
if statistic is "rate", specify either "dsr" or "crude"; string; no default |
years_of_data |
number of years the data represents; this is required for statistic = "rate"; numeric; no default |
multiplier |
the multiplier used to express the final values (eg 100 = percentage); numeric; no default |
returns the same table as provided with two additional fields. First will have the same name as the rate field, with the suffix "_chart", the second will be called denominator_derived
Sebastian Fox, sebastian.fox@phe.gov.uk
Other PHEindicatormethods package functions:
assign_funnel_significance()
,
calculate_ISRate()
,
calculate_ISRatio()
,
calculate_funnel_limits()
,
phe_dsr()
,
phe_life_expectancy()
,
phe_mean()
,
phe_proportion()
,
phe_quantile()
,
phe_rate()
,
phe_sii()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.