data.creation.reg: Regression Dataset

Description Usage Arguments Value Author(s)

Description

Returns the input data in a different format. Provides the adequate dataset for implementing regression models.

Usage

1

Arguments

data

A data.frame with at least 5 variables: times1 (time of the intermediate event/censoring time), delta (indicator of transition to the intermediate event), times2 (time to the final event/censoring time), time (times1 + times2) and status (censoring indicator: "dead"=1,"alive"=0). The remaining variables in the data.frame are left for the covariates.

Value

A data.frame in a counting process format.

Author(s)

Luis Felipe Meira-Machado and Javier Roca-Pardinas


p3state.msm documentation built on May 2, 2019, 2:29 p.m.