data: Toy Two-Stage Trial Datasets

dataR Documentation

Toy Two-Stage Trial Datasets

Description

These datasets are provided only to facilitate examples. They are not based on or representative of any real-world applications.

Usage

data(twoStageCont)

data(twoStageCens)

data(twoStageSurv)

Format

twoStageCont is a dataset generated to mimic a simple two-stage trial. The data.frame contains 1000 observations with 5 columns:

X1

The first stage covariate. A normally distributed continuous variable.

A1

The first stage treatment. A binary variable.

X2

The second stage covariate. A normally distributed continuous variable.

A2

The second stage treatment. A binary variable.

Y

The outcome. A continuous variable.

twoStageCens is a dataset generated to mimic a simple two-stage trial with right-censoring. The data.frame contains 1000 observations with 9 columns:

X11

A first stage covariate. A normally distributed continuous variable.

X12

A first stage covariate. A continuous variable = X11^4.

A1

The first stage treatment. A binary variable.

T1

The time from the beginning of the first stage to the event or to stage 2 entry, whichever comes first.

X21

A second stage covariate. A normally distributed continuous variable.

X22

A second stage covariate. A continuous variable = X21^3.

A2

The second stage treatment. A binary variable.

T2

The time from the beginning of the second stage to the event defined only for subjects who enter the second stage.

delta

Event indicator.

Note: For participants who experienced the event during stage 1, i.e., did not continue to stage 2, the "survival time" is T1. For participants that entered stage 2, the "survival time" is T1 + T2.

twoStageSurv is a dataset generated to mimic a simple two-stage trial without censoring. The data.frame contains 1000 observations with 9 columns:

X11

A first stage covariate. A normally distributed continuous variable.

X12

A first stage covariate. A continuous variable = X11^4.

A1

The first stage treatment. A binary variable.

T1

The time from the beginning of the first stage to the event or to stage 2 entry, whichever comes first.

X21

A second stage covariate. A normally distributed continuous variable.

X22

A second stage covariate. A continuous variable = X21^3.

A2

The second stage treatment. A binary variable.

T2

The time from the beginning of the second stage to the event non-zero only for subjects who did not have an event in Stage I.

Note: The "survival time" is T1 + T2.


DTRreg documentation built on Nov. 20, 2023, 1:06 a.m.

Related to data in DTRreg...