get_ds_rt_var: Calculate the variance for a directly standardized rate

Description Usage Arguments Value Examples

View source: R/get_ds_rt.R

Description

Calculate the variance for a directly standardized rate

Usage

1

Arguments

df

A data frame with the columns popn, std_popn, spec_rt

Value

A variance as a double

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
df <- data.frame(counts, popn, std_popn) %>%
  dplyr::mutate(
    spec_rt = get_spec_rt(counts, popn),
    exp_counts = spec_rt * std_popn
  )

get_ds_rt_var(df)

## End(Not run)

bcgov/bcEpiRate documentation built on Feb. 24, 2022, 4:05 p.m.