dt_2t: An example of a dataset in long format with two time-points...

Description Usage Format

Description

Simulated dataset containing 500,000 i.i.d. observations organized in long format as person-time rows. The binary time-varying exposure is A and binary time-invariant outcome is Y. See /tests/ for R code that generated this data as well as R code that uses stremr to analyze this data.

Usage

1

Format

A data frame with 500,000 observations and variables:

ID

Unique subject identifier

t

Interger for current time period, range 0-1

L1

Binary time-varying confounder

L2

Binary time-varying confounder

L3

Binary time-varying confounder

A

Binary time-varying exposure

Y

Indicator of the binary outcome at the end of the study (t=1). Constant set to 0 at first time point (t=0)


osofr/estimtr documentation built on Jan. 25, 2022, 8:05 a.m.