nest_tdc: Create nested data frame from data with time-dependent...

Description Usage Arguments

View source: R/nest-utils.R

Description

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

Usage

1
2
3
4
5
6
7
nest_tdc(data, formula, ...)

## Default S3 method:
nest_tdc(data, formula, ...)

## S3 method for class 'list'
nest_tdc(data, formula, ...)

Arguments

data

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.

formula

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.

vars

A character vector of TDCs that will be nested.

id

A character giving the name of the ID column.


adibender/ped documentation built on Dec. 16, 2019, 12:33 a.m.