Created
February 4, 2021 20:58
-
-
Save bbdaniels/7e10d51443175e8a2ac231075ed4886b to your computer and use it in GitHub Desktop.
Arbitrary Monte Carlo dataset with -post- in Stata
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
sysuse auto.dta , clear | |
levelsof foreign, local(levels) | |
tempfile posty | |
postfile posty str10(a) b c d using `posty' , replace | |
foreach level in `levels' { | |
local l : label (foreign) `level' | |
post posty ("`l'") (2) (3) (4) | |
} | |
postclose posty | |
use `posty' , clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment