group_CWR_estimates: Group CWR calculation function

View source: R/group_CWR_estimates.R

group_CWR_estimatesR Documentation

Group CWR calculation function

Description

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.

Usage

group_CWR_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 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

Value

data frame of cwr estimates for each sex for each group


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