calc_CCR | R Documentation |
Calculates Cohort Change Ratios across two time periods 5 years apart
calc_CCR(df_pre, df_post, composite = FALSE, parent_cols = c())
df_pre |
data frame like object at time t should have values for 2 sexes and 18 age groups |
df_post |
data frame like object at time t+5 should have values for 2 sexes and 18 age groups |
composite |
logical, return numerator and denominator separately |
parent_cols |
character vector, other columns to maintain in group by |
data frame object with CCR calculate by age and sex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.