This function takes as input a working dataset of interest and a reference dataset.
refData_match(wDAT, rDAT, ncores = 1)A dataframe containing calculated log-transformed density and log-transformed cumulative distribution
A working dataset data.frame containing
required columns age, time, datediag_yr,
and sex corresponding to age, observed time (in years),
diagnosis year, and sex (coded 'female'/'male'), respectively.
A reference dataset data.frame containing
required columns year, age, qx,
and sex corresponding to reference year,
reference age, event's interval hazard, and sex, respectively.
Integer number of parallel threads to decrease matching runtime.