adapt {borrowr} | R Documentation |
Data set used in the package vignette
Description
A simulated data set used in the package vignette. Data generating mechanism is adapted from Hill (2011). Includes 3 data sources to illustrate borrowing information in estimate the population average treatment effect.
Usage
adapt
Format
A data frame with 180 rows and 5 variables
- y
the outcome
- x
a variable associated with y and treatment
- source
character variable with 3 levels: "Primary", "Supp1", "Supp2"
- treatment
treatment variable. 1 = treated, 0 = untreated
- compliant
compliance indicator. 1 = compliant to treatment, 0 = noncompliant to treatment
References
Hill, Jennifer L. (2011) Bayesian Nonparametric Modeling for Causal Inference. Journal of Computational and Graphical Statistics, 20:1, 217-240.
Examples
data(adapt)
head(adapt)
[Package borrowr version 0.2.0 Index]