pretest_posttest_designer: Create a pretest-posttest design
Description
Routes to make_design() with id "pretest_posttest":
make_design("pretest_posttest", N = N, ate = ate, ...).
Usage
pretest_posttest_designer(
N = 100,
ate = 0.25,
sd_1 = 1,
sd_2 = 1,
rho = 0.5,
attrition_rate = 0.1,
args_to_fix = NULL
)
Arguments
- N
Sample size.
- ate
Average treatment effect.
- sd_1
Standard deviation of the pretest shock.
- sd_2
Standard deviation of the posttest shock.
- rho
Correlation between pretest and posttest shocks (-1 to 1).
- attrition_rate
Share of units not observed at the posttest.
- args_to_fix
Ignored. Present for compatibility with DesignLibrary 0.1.
Examples
Run this codepretest_posttest_designer(N = 40, attrition_rate = 0.2)
Run the code above in your browser using DataLab