sim_data_normal {PStrata}R Documentation

Simulated Dataset for Normal Outcome

Description

A dataset generated for illustration of the principal stratification analysis. This dataset represents the common case of non-compliance.

Usage

sim_data_normal

Format

## 'sim_data_normal' A data frame with 1,000 rows and 4 columns:

S

Principal Strata: "never taker", "complier" or "always taker"

Z

Randomized treatment arm: 0 = control, 1 = treatment

D

Actual treatment arm: 0 = control, 1 = treatment

Y

Outcome

Details

The dataset represents the scenario where actual treatment might not be in compliance with the randomized (assigned) treatment. Defiers are ruled out, leaving three strata, "never taker", "complier" and "always taker" randomly sampled with probability 0.3, 0.2 and 0.5 respectively. The assigned treatment Z is randomized with 0.5 probability for either arm. The outcome Y is given by the following.

never taker

Y \sim N(3, 1)

complier

Y \sim N(-1-Z, 0.5)

always taker

Y \sim N(1, 2)

The exclusion restriction assumption holds for never takers and always takers in this generated dataset.


[Package PStrata version 0.0.5 Index]