two_arm_attrition_designer: Create a two-arm design with attrition
Description
Routes to make_design() with id "two_arm_attrition":
make_design("two_arm_attrition", N = N, a_R = a_R, ...).
Usage
two_arm_attrition_designer(
N = 100,
a_R = 0,
b_R = 1,
a_Y = 0,
b_Y = 1,
rho = 0,
args_to_fix = NULL
)
Arguments
- N
Sample size.
- a_R
Constant in the equation relating treatment to reporting.
- b_R
Slope relating treatment to reporting.
- a_Y
Constant in the equation relating treatment to the outcome.
- b_Y
Slope relating treatment to the outcome.
- rho
Correlation between reporting and outcome shocks (0 to 1).
- args_to_fix
Ignored. Present for compatibility with DesignLibrary 0.1.
Examples
Run this codetwo_arm_attrition_designer(N = 40, b_R = 0.5)
Run the code above in your browser using DataLab