Provides methods to nest data with time-dependent covariates (TDCs).
A formula
must be provided where the right hand side (RHS) contains
the structure of the TDCs
nest_tdc(data, formula, ...)# S3 method for default
nest_tdc(data, formula, ...)
# S3 method for list
nest_tdc(data, formula, ...)
A suitable data structure (e.g. unnested data frame with
concurrent TDCs or a list where each element is a data frame, potentially
containing TDCs as specified in the RHS of formula
).
Only TDCs present in formula
will be returned.
A two sided formula with a two part RHS, where the second part indicates the structure of the TDC structure.
Further arguments passed to methods.