get_cumulative: Expand time-dependent covariates to functionals

get_cumulativeR Documentation

Expand time-dependent covariates to functionals

Description

Given formula specification on how time-dependent covariates affect the outcome, creates respective functional covariate as well as auxiliary matrices for time/latency etc.

Usage

get_cumulative(data, formula)

expand_cumulative(data, func, n_func)

Arguments

data

Data frame (or similar) in which variables specified in ... will be looked for

formula

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.

func

Single evaluated cumulative term.


adibender/pammtools documentation built on Feb. 27, 2024, 8:40 a.m.