data_distal_continuous: A synthetic data set of an MRT with continuous distal outcome

data_distal_continuousR Documentation

A synthetic data set of an MRT with continuous distal outcome

Description

Simulated longitudinal dataset suitable for illustrating the 'dcee()' function. Each row corresponds to one decision point for one subject. The distal outcome 'Y' is constant within subject (because it is measured at the end of the study, and here we append it to the long format data as an extra column to conform with the 'dcee()' function requirement.

Usage

data_distal_continuous

Format

a data frame with 1500 observations and 11 variables

userid

Subject identifier

dp

Decision point (1..T)

X

Endogenous continuous time-varying covariate

Z

Endogenous binary time-varying covariate

avail

Availability indicator (0/1)

A

Treatment (0/1)

prob_A

Randomization probability P(A=1|H_t)

A_lag1

Lagged treatment

Y

Distal continuous outcome (constant per subject)


MRTAnalysis documentation built on Sept. 9, 2025, 5:41 p.m.