OdataCatCENS: An example of a dataset in long format with categorical...

Description Usage Format

Description

Simulated dataset containing 1,000 i.i.d. observations organized in long format as person-time rows. The binary exposure is TI and binary outcome is Y.tplus1. See /tests/ for R code that generated this data.

Usage

1

Format

A data frame with 1,000 observations and variables:

ID

Unique subject identifier

CVD

Baseline confounder (time invariant)

t

Interger for current time period, range 0-16

lastNat1

Time since last monitoring event, set to 0 when N[t-1]=0 and then added one for each new period where N[t] is 0.

highA1c

Time-varying confounder

CatC

Categorical censoring variable, range 0-2. The value of 0 indicates no censoring 1 or 2 indicates censoring (possibly for different reasons)

C

Binary censoring indicator derived from CatC. 0 if CatC is 0 and 1 if CatC is 1 or 2.

TI

Binary exposure variable

N

The indicator of being monitored (having a visit)

Y.tplus1

Binary outcome at t


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