predict_spline_offset: Helper function to predict spline offset for one ccmpp input...

Description Usage Arguments Value

View source: R/popReconstruct_draws.R

Description

Helper function to predict spline offset for one ccmpp input component

Usage

1
predict_spline_offset(dt, B_t = NULL, B_a = NULL, years = NULL, ages = NULL)

Arguments

dt

[data.table()]
Input offset estimates for the one ccmpp input component for one draw and sex.

B_t

[matrix()]
B-spline basis matrix for the year dimension. By default is NULL but must be provided for all ccmpp inputs except 'baseline'.

B_a

[matrix()]
B-spline basis matrix for the age dimension. By default is NULL but must be provided for all ccmpp inputs except 'srb'.

years

[integer()]
The start of each calendar year interval for the ccmpp input component. By default is NULL but must be provided for all ccmpp inputs except 'baseline'.

ages

[integer()]
The start of each age group for the ccmpp input component. By default is NULL but must be provided for all ccmpp inputs except 'srb'.

Value

[data.table()] containing draws of spline offsets for one ccmpp input.


ihmeuw-demographics/popMethods documentation built on Jan. 29, 2021, 12:39 p.m.