View source: R/group_CCR_estimates.R
group_CCR_estimates | R Documentation |
Function for doing ccr estimates for multiple groups at the same time. Has the ability to smooth and smooth either to the sum of all the groups or to another set of estimates that are passed to ps_df.
group_CCR_estimates(DF, smooth = TRUE, ps_df = NULL, components = FALSE)
DF |
data frame of 18 age groups and 2 sexs for any number of groups for 2 years of data which should be 5 years apart |
smooth |
logical whether to do any smoothing at all |
ps_df |
a parent data frame to smooth to which will merge on the group ccr data frame and will match based on the matching columns |
components |
logical return subgroup components for multistage smoothing |
data frame of ccr estimates for each sex and age for each group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.