sim_data_normal | R Documentation |

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

```
sim_data_normal
```

## '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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.