Learn R Programming

gfoRmula (version 1.1.1)

basicdata: Example Dataset for a Survival Outcome with Censoring

Description

A dataset consisting of 11,332 observations on 2,500 individuals over 7 time points. Each row in the dataset corresponds to the record of one individual at one time point. Individuals who are censored at time \(k+1\) only have a total of \(k+1\) records, which correspond to time indices \(0,..., k\).

Usage

basicdata

Arguments

Format

A data table with 11,332 rows and 8 variables:

t0

Time index.

id

Unique identifier for each individual.

L1

Binary time-varying covariate.

L2

Continuous time-varying covariate.

L3

Continuous baseline covariate. For each individual, the baseline values are repeated at each time point.

A

Binary treatment variable.

D

Competing event; time-varying indicator of failure.

Y

Outcome of interest; time-varying indicator of failure.