sim_data: Simulated data from Schafer and Galagate (2015)

Description Usage Format Details Value Source References Examples

Description

Simulated data used in the paper "Causal inference with a continuous treatment and outcome: alternative estimators for parametric dose-response models".

Usage

1

Format

A data frame with 1000 rows and 20 variables:

Details

A dataset containing sim_data.

Value

(A.1, A.2, A.3, A.4, A.5, A.6, A.7, A.8) are the true measured covariates.

(B.1, B.2, B.3, B.4, B.5, B.6, B.7, B.8) are the transformed covariates.

T

treatment

Theta.1

unit level intercept

Theta.2

unit level slope

Y

outcome

Source

use the draw_sample function

References

Schafer, J.L., Galagate, D.L. (2015). Causal inference with a continuous treatment and outcome: alternative estimators for parametric dose-response models. Manuscript in preparation.

Examples

1
2
3
## Example from Schafer (2015).
data(sim_data)
head(sim_data)

Example output

          A.1        A.2        A.3         A.4         A.5        A.6
1  2.23024165 -0.7445557 -1.6246817 -0.88718090  0.75292494  1.9789417
2 -2.73941461  0.5111362 -0.2925278 -1.17783817 -0.21524482 -1.0368651
3  2.33929095 -0.2909555  0.2587474 -0.70064257  0.08687195  0.3587619
4  1.32758921 -1.2470238  0.1009962 -1.20268699  0.70682358 -0.1129114
5 -0.64100292 -0.1977911 -0.5750885 -0.55252424  0.48314406  1.9118463
6 -0.08163893  0.3942059  1.1692139 -0.05118745  0.21082354 -0.3103260
         A.7        A.8        B.1      B.2      B.3       B.4       B.5
1 -1.1593392 -0.1580094 -2.5632607 2.741114 23.55148 0.8595334 0.3406452
2  0.5446311 -0.2159908  2.2370255 1.445121 29.63414 0.9603624 0.2188683
3  1.8270156 -0.4352248 -2.7195863 2.799577 36.48802 0.8758483 0.4564139
4  0.1009811 -1.5656380 -1.3727961 2.491223 34.85706 0.6690281 0.5506705
5 -2.1050204 -1.5043157  0.6782461 2.009411 28.96859 0.4566685 0.4737444
6 -0.4930710  0.2461578  0.1621593 2.271171 42.93835 0.1608814 0.7351844
        B.6 B.7 B.8        T        Y  Theta.1     Theta.2
1 13.438128   0   0 12.88622 87.88654 67.61635  1.57301289
2 10.359947   1   0 10.98308 16.75553 33.90740 -1.56166318
3  6.251044   1   1 13.42037 78.61385 60.40543  1.35677403
4  5.286566   0   1 11.82446 58.87034 52.88004  0.50660163
5  4.974600   0   0 11.11499 50.90384 51.42433 -0.04682703
6  1.672493   0   0 12.59332 43.99307 46.58546 -0.20585452

causaldrf documentation built on May 29, 2017, 6:14 p.m.