Created
November 11, 2022 17:17
-
-
Save andrewheiss/f38ceb81d362a7fc7cda3ae9ccf1283c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment