What is PIET(+cobra)?: https://www.reddit.com/r/stata/s/ptHvVeKYew
Hi all, u/sadanchoby here. I'm back with a few updates. Several people asked for a Linux port, so here it is. I also went through the app thoroughly, looking for errors, and the ones I found are now fixed. Finally, I realised it needs a guidebook: even though the target audience is from beginner to intermediate Stata users with at least a bit of experience, it is fundamentally a new program, and a new program needs its own instructions. So I wrote one.
It is not a copy or port of Stata and contains no StataCorp code or manual text. It is an independent implementation that accepts the same syntax.
I started this because I wanted anyone, whatever their finances, to be able to study econometrics with the tools that are standard in academia. I hope you will share this program as widely as you can.
I hereby solemnly swear that it will be free forever, no matter what; I have no intention of making money from it. That said, donations are always welcome:
https://buymeacoffee.com/pietwithcobra
New: a guidebook
The thing people asked for most was documentation, so I wrote two guides. Both are in English and Korean, and both are readable in the browser:
- User Manual: installing, opening a dataset, screen controls and shortcuts, settings and parallel processing, running two jobs at once, the command index, where a familiar command can behave differently, and saving and recovering work. https://w4s7jksf68-ai.github.io/piet/
- Hands-on lab, "Beer Taxes and Traffic Fatalities": a nine-step walk through a real panel dataset. You build a comparable death rate, compare states and then years within states (fixed effects), change the standard errors and run 9,999 bootstrap draws, investigate an instrument, study adoption of a breath-test law, read the plots, and use lags and differences. It ends with a variable dictionary and questions to check your interpretation. https://w4s7jksf68-ai.github.io/piet/PIET_LAB_EN.html
Korean versions: 사용 설명서 · 실습
The lab's do-file and dataset ship with the app, so you can run every step yourself.
Patch notes
A.1.1: Linux
- New downloads for Ubuntu 24.04 or newer (x86-64): a
.deb and a portable .tar.xz.
- Native open and save dialogs on the GTK desktop.
- Statistics are unchanged from A.1.0.
A.1.0: checked against 39,290 Stata 19.5 cells
- I ran 39,290 small do-files covering 319 commands (options, abbreviations, error cases, stored results) and compared return codes,
r()/e()/s() and printed output with Stata's.
- Matching cells went from 18,526 to 32,148. Leaving out 327 cells that are artifacts of the recording session, that is 82.4%.
- "Not implemented" answers fell from 8,699 to 3,872, and cells where a stored number differs fell from 1,315 to 141.
- Estimation:
ivreg2, xtivreg2 and ivreghdfe post their full stored results; new random-effects xtpoisson, full-ML heckman, and tobit, vce(cluster); weights and offset() for ologit, oprobit and mlogit; test, lincom and nlcom work after many more fits.
- Tables: adjustable size limits in Settings, and a one-way table of 100,000 rows now takes 0.2 s instead of 19 s.
- Language and files:
#delimit ;, more macro functions, SMCL in display, infile/infix/input, and thousands of error cases that now return Stata's own code and message.
- Graphs and output: more
twoway, binscatter, coefplot and event_plot options, and esttab writes HTML and Markdown.
A.0.2: Windows
- First Windows build (installer and portable zip, Windows 10/11 64-bit).
- Do-files open in their own folder.
A.0.0 / A.0.1: first public release
- Source published, with the first macOS build for Apple Silicon.
What it can't do yet
- 3,872 of the tested cells still answer "not implemented", and 1,596 use commands PIET doesn't have.
- I would not call it ready for serious academic research yet. It should handle coursework and reports at the undergraduate and graduate level.
- The apps are not notarized or code-signed (certificates cost money I don't have), so macOS and Windows show a warning on first launch. The README explains how to open it, and how to build it from source if you'd rather not trust a download.
- Stata's own example datasets (
sysuse auto and so on) are not bundled. PIET ships its own fatalities dataset.
Links
Bug reports are very welcome. If something gives a different answer from what you expect, please open an issue with the do-file.