-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother-languages.qmd
24 lines (16 loc) · 3.18 KB
/
other-languages.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: "Declaring designs in several programming languages"
---
| Language | Declaration in code | Figure based on mock data | Diagnosis |
| -------- | ------------------- | ------------------------------------------------------------ | --------- |
| R | <a href = "/static/other-languages/two_arm_design_r.r"><img width="250px" src="/static/other-languages/figures/two_arm_design_r_declaration.png"/></a> | <a href = "/static/other-languages/two_arm_design_r_figure.r"><img width="250px" src="/static/other-languages/figures/two_arm_design_r.png"/></a> | <a href = "/static/other-languages/two_arm_design_r.html"><img width="250px" src="/static/other-languages/figures/two_arm_design_r_diagnosis.png"/></a> |
| Stata | <a href = "/static/other-languages/two_arm_design_stata.do"><img width="250px" src="/static/other-languages/figures/two_arm_design_stata_declaration.png"/></a> | <a href = "/static/other-languages/two_arm_design_stata.txt"><img width="250px" src="/static/other-languages/figures/two_arm_design_stata.png"/></a> | <a href = "/static/other-languages/two_arm_design_stata.html"><img width="250px" src="/static/other-languages/figures/two_arm_design_stata_diagnosis.png"/></a> |
| Python | <a href = "/static/other-languages/two_arm_design_python.py"><img width="250px" src="/static/other-languages/figures/two_arm_design_python_declaration.png"/></a> | <a href = "/static/other-languages/two_arm_design_python_figure.py"><img width="250px" src="/static/other-languages/figures/two_arm_design_python.png"/></a> | <a href = "/static/other-languages/two_arm_design_python.html"><img width="250px" src="/static/other-languages/figures/two_arm_design_python_diagnosis.png"/></a> |
| Excel | <a href = "/static/other-languages/two_arm_design_excel.xlsx"><img width="250px" src="/static/other-languages/figures/two_arm_design_excel_declaration.png"/></a> | <a href = "/static/other-languages/two_arm_design_excel.xlsx"><img width="250px" src="/static/other-languages/figures/two_arm_design_excel.png"/></a> | <a href = "/static/other-languages/two_arm_design_excel.xlsx"><img width="250px" src="/static/other-languages/figures/two_arm_design_excel_diagnosis.png"/></a> |
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](/static/other-languages/two_arm_design_r.rmd), [Stata](/static/other-languages/two_arm_design_stata.txt), and [Python](/static/other-languages/two_arm_design_python.md).
# 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`