group_CCR_estimates: Group CCR calculation function

View source: R/group_CCR_estimates.R

group_CCR_estimatesR Documentation

Group CCR calculation function

Description

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.

Usage

group_CCR_estimates(DF, smooth = TRUE, ps_df = NULL, components = FALSE)

Arguments

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

Value

data frame of ccr estimates for each sex and age for each group


nmmarquez/smoothHP documentation built on April 12, 2022, 8:04 a.m.