--- title: "Stata testing" format: pdf --- ```{r, echo=FALSE, message=FALSE} # Statamarkdown: https://github.com/hemken/Statamarkdown # devtools::install_github("Hemken/Statamarkdown") library(Statamarkdown) ``` Python for fun: ```{python} print("Hey world") ``` Load some data ```{stata, collectcode=TRUE} sysuse auto ``` Do a t-test ```{stata, echo=FALSE, cleanlog=FALSE} ttest mpg, by(foreign) ```