Skip to contents

Extend HSP data set

Usage

extend_hsp_cohorts(original_hsp = sbt::HSPs, n_proj = 13, max_diff = 8)

Arguments

original_hsp

A data.frame containing historical HSP cohort data with columns cohort1 and cohort2.

n_proj

An integer specifying the number of projection years to extend forward.

max_diff

An integer specifying the maximum cohort age difference to maintain between cohorts.

Value

A data.frame with extended cohort pairs (cohort1, cohort2), including filled historical gaps and forward projections.