| Language | Declaration in code | Figure based on mock data | Diagnosis | | -------- | ------------------- | ------------------------------------------------------------ | --------- | | R | | | | | Stata | | | | | Python | | | | | Excel | | | | Table: Design declaration in four languages
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.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.