group_HP_project: Produces forecasts using the Hamilton-Perry Method and...

View source: R/group_HP_project.R

group_HP_projectR Documentation

Produces forecasts using the Hamilton-Perry Method and optionally smoothing

Description

Produces 5 year forecasts out to specified year for multiple

Usage

group_HP_project(
  DF,
  smooth = TRUE,
  years_out = 30,
  cwr_df = NULL,
  ccr_df = NULL,
  par_year = NULL,
  proj_year = NULL
)

Arguments

DF

data frame of 18 age groups and 2 sexs for any number of groups for any number of years of data

smooth

use Inoue smoothing for groups

years_out

int how many years out to forecast from proj_year

cwr_df

df precalculated CWR values

ccr_df

df precalculated CCR values

par_year

year to build parameters from

proj_year

year to start projections from

Value

data frame object with projected values


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