calc_asrate_var: Calculate age-specific rates and variance

View source: R/calc_asrate_var.R

calc_asrate_varR Documentation

Calculate age-specific rates and variance

Description

Given a bare (unquoted) column of counts and population, will return the rate in 100,000 as well as the variance (using Poisson approximation).

Usage

calc_asrate_var(df, new_name, death_col, pop_col = pop)

Arguments

df

processed MCOD dataframe

new_name

bare prefix of the new column names (e.g., opioid)

death_col

column of counts for numerator of rate

pop_col

column of population for denominator of rate

Value

dataframe with two new columns


mkiang/narcan documentation built on Sept. 26, 2024, 7:18 a.m.