View source: R/calc_asrate_var.R
calc_asrate_var | R Documentation |
Given a bare (unquoted) column of counts and population, will return the rate in 100,000 as well as the variance (using Poisson approximation).
calc_asrate_var(df, new_name, death_col, pop_col = pop)
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 |
dataframe with two new columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.