Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created November 11, 2022 17:17
Show Gist options
  • Save andrewheiss/f38ceb81d362a7fc7cda3ae9ccf1283c to your computer and use it in GitHub Desktop.
Save andrewheiss/f38ceb81d362a7fc7cda3ae9ccf1283c to your computer and use it in GitHub Desktop.
---
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