|Language||Declaration in code||Figure based on mock data||Diagnosis|
Click on the declarations to download the code files; the figures to download the code that generated them; and the diagnosis to download a reproducible document that includes the diagnosis. You can also download the code for the reproducible documents for R, Stata, and Python.
How to compile the reproducible documents
R: the .rmd is knit in Rstudio
Python: compiled through pandoc using the following command:
stitch two_arm_design_python.md -o two_arm_design_python.html
Stata: compiled from within Stata via the command:
dyndoc two_arm_design_stata.txt, replace