Given formula specification on how time-dependent covariates affect the outcome, creates respective functional covariate as well as auxiliary matrices for time/latency etc.
get_cumulative(data, formula)expand_cumulative(data, func, n_func)
Data frame (or similar) in which variables specified in ... will be looked for
A formula containing cumulative
specials,
that specify the type of cumulative effect one wants to estimate. For details
see the vignettes on data transformation and time-dependent covariates.
Single evaluated cumulative
term.