Example_data {rjaf} | R Documentation |
Simulated randomized experiment data
Description
A data set simulated based on the function sim.data
in the Examples section
of rjaf.R
.
Usage
Example_data
Format
A data frame with 100 rows, 12 columns, and 5 treatment arms:
- id
Subject ID.
- trt
Character strings indicating treatment arms (0, 1, 2, 3, and 4) assigned to subjects, where arm 0 is considered to be the control.
- X1
Covariate X1.
- X2
Covariate X2.
- X3
Covariate X3.
- prob
Probabilities of treatment assignment.
- Y
Observed outcomes.
- Y0
Counterfactual outcomes when subjects are assigned to treatment 0.
- Y1
Counterfactual outcomes when subjects are assigned to treatment 1.
- Y2
Counterfactual outcomes when subjects are assigned to treatment 2.
- Y3
Counterfactual outcomes when subjects are assigned to treatment 3.
- Y4
Counterfactual outcomes when subjects are assigned to treatment 4.
[Package rjaf version 0.1.3 Index]