View source: R/group_CWR_estimates.R
group_CWR_estimates | R Documentation |
Function for doing cwr 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_CWR_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 a single year of data |
smooth |
logical whether to do any smoothing at all |
ps_df |
a parent data frame to smooth to which will merge on the group cwr data frame and will match based on the matching columns |
components |
logical return subgroup components for multistage smoothing |
data frame of cwr estimates for each sex for each group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.