Run this app using Shiny and R-Studio.
This app allows you to calculate optimal treatment assignments using baseline covariates. This treatment assignment minimizes the expected mean squared error of estimators for the average treatment effect. To use this app:
- Upload a .csv file of baseline covariates (without headers).
- Choose a prior and estimation method.
- Choose the number of re-randomization draws and the expected R2 of your covariates for the outcome
- Calculate optimal design, and then download a .csv file with this design.
The downloaded .csv file contains the original covariates (V1, V2, ...), as well as a new column with the recommended treatment assignment (Dstar).
To learn more about the theoretical background, read experimentaldesign.pdf in this folder.