Repository navigation
Releases
PIET A.2.0 / CoBrA 1.2.0 — Stata command compatibility update
PIET A.2.0 / CoBrA 1.2.0 — Stata command compatibility update
PIET expands support for GMM, frame management, postestimation, result tables,
and command options. Long display output now wraps in the console and in
plain-text logs. Stata's example datasets are permanently unavailable through
PIET's sysuse. require returns r(601) for unavailable packages.
The recorded Stata comparisons omit graph internals, timestamps, elapsed
times and serialization-dependent archive sizes as described in the
compatibility policy.
Some Stata commands and options remain unsupported. The policy also lists
follow-ups for eigenvector signs, temporary names, graph schemes, signed ranks,
table abbreviations and checksums.
Downloads are available for macOS arm64, Windows x64 and Ubuntu 24.04+ x86-64.
The release workflow builds each file from this repository at tag A.2.0.
SHA-256 files are provided alongside the downloads.
PIET A.1.1 / CoBrA 1.1.0 — Linux desktop release
PIET A.1.1 / CoBrA 1.1.0 — Linux desktop release
PIET A.1.1 adds Linux downloads alongside macOS and Windows. The computation
engine remains CoBrA 1.1.0; contracts A 1.27.0 and B 2.11.0 are unchanged.
Corresponding source: this repository at tag A.1.1.
Linux downloads
- Ubuntu 24.04 LTS or newer, x86-64 with SSE4.2 (roughly 2009 onward).
PIET-A.1.1-linux-x64.deb: install with
sudo apt install ./PIET-A.1.1-linux-x64.deb, then launch PIET from the
application menu or runpiet.PIET-A.1.1-linux-x64.tar.xz: extract the entire folder and run./PIET.
Install its dependencies first with
sudo apt install libwebkit2gtk-4.1-0 libgtk-3-0 libopenblas0 liblapacke.- Both include the engine, frontend, sample dataset, teaching examples and
licence notices. Each download has a SHA-256 file beside it.
The GTK desktop backend now opens and saves files through native dialogs,
loads the bundled interface's JavaScript modules and resolves its resources
from the executable's location. The x86-64 engine launcher selects OpenBLAS's
fixed Nehalem arithmetic path so CPU dispatch does not change the last step of
a nearly converged probit. Package dependencies enforce the tested Ubuntu
24.04 runtime floor; Ubuntu 22.04 is not supported.
Statistical algorithms, reference values and test tolerances are unchanged
from A.1.0. Its capabilities and known gaps remain as documented below.
Validation of the Linux port: 67 self-contained engine tests passed;
45 tests requiring unshipped private fixtures were skipped. The public smoke
test checked OLS against an independent solve, a .dta roundtrip and Hangul
paths/text. Native file-picker checks passed, and both extracted and installed
packages passed all 25 GUI-journey steps. macOS and Windows CI also passed.
The release workflow rebuilds the downloads from this tag and checks them
before publishing.
Build provenance: all downloads were built from commit ca1f5b00f476647b8e6ba0ad6a88f86c991af75e, the target of tag A.1.1. macOS and Windows packages passed their release jobs; Linux packages passed the same-commit Linux build, numerical and packaged GUI checks. The redundant Linux release job was cancelled after the verified same-commit artifacts were collected. All five binary checksums were verified before publication.
PIET A.1.0 / CoBrA 1.1.0 — checked against 39,290 Stata 19.5 cells: 32,148 now match
PIET A.1.0 / CoBrA 1.1.0 — checked against 39,290 Stata 19.5 cells: 32,148 now match
The app reports PIET A.1.0, the engine CoBrA 1.1.0; the engine contract moves to 1.27.0 and the
app contract to 2.11.0, both additive (nothing renamed or removed). Corresponding source: this
repository at tag A.1.0.
What this release is. On 2026-11-10 StataBE 19.5 ran 39,290 small do-files ("cells") covering
319 commands with their options, abbreviations, error cases and stored results, and everything it
printed and stored was kept. A.1.0 is the result of running PIET against every one of those cells and
repairing what differed. A cell matches when the return code, every stored result in r(), e()
and s() (within the tolerances of tests/eval/TOLERANCE.md) and, for display cells, the printed
text all agree with Stata's.
| cells | A.0.2 code | A.1.0 |
|---|---|---|
| match Stata | 18,526 | 32,148 |
| Stata runs it, PIET answers "not implemented in this version" | 8,699 | 3,872 |
| a stored number differs | 1,315 | 141 |
| Stata refuses it, PIET runs it | 2,469 | 301 |
| both refuse, with another return code | 1,785 | 240 |
| a stored result is missing, or a stored name or text differs | 3,830 | 741 |
| a command PIET does not have | 2,384 | 1,596 |
Both columns come from the same harness; two rules added during the work (values Stata itself cannot
reproduce, such as its internal data checksum and the addresses of graph objects, are not compared)
account for 122 of the new matches. 327 cells are not counted as targets: their Stata record is an artifact of the recording session
(state left by an earlier cell, a package that failed to install there) or a limit only Stata/BE has.
Outside them 32,114 of 38,963 cells match (82.4%).
Estimation
ivreg2,xtivreg2andivreghdfepost their whole set of stored results (fit statistics, F,
Sargan/Hansen J, under- and weak-identification statistics, first-stage results).reghdfeposts
e(ic)with two or more absorbed factors;prais,xtreg, be,suregandreg3post what Stata
posts.- New: the random-effects
xtpoissonmodel (gamma effects, Stata's default) withvce(robust);
heckmanby full maximum likelihood (Stata's default) withselect(varlist),predict,
mills()andnshazard();tobit, vce(cluster)andpredictaftertobit. ologit,oprobitandmlogittake weights andoffset(), andpredictafter them givesxb,
stdpandpr.meanandproportionpost their full results and takeover(),
vce(cluster), standardization andcitype().pcaandsktesttake weights.logit,probitand the other maximum-likelihood fits publishe(gradient),e(ilog)and ml's
settings, andtobitfollows Stata's ml iteration.test,lincomandnlcomnow answer after fits the engine cannot re-fit (qreg, glm, ivregress
GMM/LIML, xtreg re, sureg, the ml fits above), from the postede(b)ande(V).level()is honoured when abbreviated, down tol(90).
Tables and Settings
- New setting, Table size limits: the largest one-way and two-way tables
tabulatedraws and the
cells oftabulate, summarize(). Empty means Stata's limit, that of Stata/SE and MP (12,000 rows;
1,200 x 80; 375 cells); type a larger number to raise one. No table may exceed 1,000,000 cells
(200,000 withsummarize()), which bounds memory. - Large tables are built in linear time: a one-way table of 100,000 rows took 19 s and now takes 0.2 s.
tableandtabstatfollow Stata in more forms (pages for a third dimension,tabstatoptions).
Data, language, files, graphs
- Many data-management commands now leave Stata's
r()results (egen,isid,ipolate,
duplicates,contract,gsort,collapse,append, the gtools family and others); newchar
command;findnameselects as Stata does. #delimit ;,set varabbrev off, more extended macro functions, SMCL indisplay, the detail codes
of%tdisplay formats, more matrix functions, and a secondprogram defineof a standing
program is refused (r(110)).infile,infixandinputread lines as Stata does;import delimitedreports the encoding Stata
reports and posts itsr();zipfileandzipsavecompress as zlib does.- More options of
twoway,binscatter,coefplotandevent_plotare supported, andby()graphs
draw one panel per group;esttabwrites HTML and Markdown;estimates tabletakes its whole
option set. - Thousands of refusals now carry Stata's own return code and message, including the option
abbreviations Stata accepts and refuses (measured from 13,520 cells).
Changes that can move results you already have
import delimitedstores a non-integer numeric column asfloat, as Stata does, unless you give
asdouble.heckman ..., twostep: an observation that is selected but has a missing outcome now leaves the
estimation sample, as Stata'sheckmanmarks it out. Estimates on such data change.table: a Total margin is computed over the table's own rows (those with every dimension present).frames resetclears the data in memory.- Where Stata/BE and Stata/SE-MP differ, PIET follows SE/MP:
set maxvaris accepted and the
tabulatelimits are SE/MP's (adjustable in Settings). - An option whose only effect is output the app cannot draw yet stays a named "not implemented"
refusal instead of being accepted and silently ignored.
Known gaps: 3,872 cells are still answered "not implemented" and 1,596 use commands PIET does not
have. The differences found and not yet fixed are registered as defects, for example the order in
which label list lists value labels after reshape wide, and tabulate a b, summarize(x), which
is computed but not drawn. Stata's own example datasets (sysuse auto and others) are not bundled;
PIET's own fatalities is.
Code adopted from other projects (listed in THIRD_PARTY_NOTICES.txt): zlib's deflate algorithm
(Zlib licence), so that zipfile / zipsave report the sizes Stata reports; ICU's charset-detection
tables (Unicode License v3), for import delimited's encoding guess.
Checks on this tree: before publication, the full internal gate (application self-test, the ten
wave answer books, 339 frozen outputs, 112 engine unit tests, 148 correctness gates, registry,
transport and probe checks) passed. In GitHub Actions, as before: engine unit tests,
tests/public_smoke.py and the real-window --ui-smoke journey on macOS and Windows, and the
downloads built from the commit at this tag by .github/workflows/release.yml.
PIET A.0.2 / CoBrA 1.0.2 — first Windows build; do-files open in their own folder
PIET A.0.2 / CoBrA 1.0.2 — first Windows build; do-files open in their own folder
The app reports PIET A.0.2, the engine CoBrA 1.0.2; contracts unchanged at
1.26.0 / 2.10.0. Corresponding source: this repository at tag A.0.2.
New on every platform: do-files open in their own folder, unless you chose a
directory yourself. PIET still starts in Documents. Choosing a do-file with Run .do
or Open do-file, dropping one on the window, or reopening one from Recent now moves
the working directory to that file's folder, and the Results pane says so, so a
relative use "mydata.dta" finds the data beside the do-file. Once you have run cd,
or if you set a default working directory in Settings, opening a do-file leaves the
directory alone, so a project that runs code/analysis.do from its root behaves as
in Stata. A do FILE you type or call from a script never moves it. To match Stata
fully, turn off Open do-files in their own folder in Settings.
New: Windows 10/11 x64. PIET-A.0.2-setup.exe installs the app and, if the machine
needs it, Microsoft's WebView2 Runtime. PIET-A.0.2-windows-x64-portable.zip runs
from any folder on a machine that already has WebView2, as Windows 11 does. Neither
is code-signed, so SmartScreen warns on first launch: see the README's "Download
for Windows".
The Windows build gives the same numbers on every CPU. Its linear algebra uses one
fixed set of OpenBLAS kernels (SSE4.2) rather than choosing by processor, because
choosing changed results on nearly separated logit and probit samples at about 1e-8.
The cost is speed on very large matrix work, compared with kernels tuned to a newer CPU.
Known differences from the macOS build, both named rather than hidden:
ustrregexra()andustrregexm()refuse a character above U+FFFF, such as an emoji,
with r(199). Windows matches text in 16-bit units, so.would otherwise match half
of such a character. Hangul and all other text through U+FFFF behave as on macOS.sdid, vce(bootstrap)standard errors can differ from the macOS build's in about the
fourth significant digit for the same seed; the point estimate does not. A few
resampled panels are near-degenerate, which makes those replicates sensitive to
whether the CPU fusesa*b + cinto one rounding step. The macOS build does and the
Windows build, which targets CPUs without that instruction, does not.
Also fixed: a built tree on Windows now finds its own engine, and the engine's
x86-64 baseline is now applied on native Windows builds.
Checks on this tree: engine unit tests and tests/public_smoke.py (now including
Hangul folder and file names) on both macOS and Windows in GitHub Actions, where the
same 45 of 112 engine tests are skipped on both for lack of private fixtures; the
app's real-window --ui-smoke journey on both, now covering the do-file folder
behaviour through the drop path.
Build provenance: .github/workflows/release.yml built every download from the
commit at this tag: scripts/build-macos.sh with scripts/package-macos-dmg.sh, and
scripts/build-windows.sh with scripts/package-windows.sh. Verify downloads with the
attached .sha256 files.
PIET A.0.1 / CoBrA 1.0.1 — patch stamp, macOS build (2026-11-06)
PIET A.0.1 / CoBrA 1.0.1 — patch stamp (2026-11-06)
The same tree as the 2026-11-06 build, now carrying the version strings that identify it: the app reports PIET A.0.1, the engine CoBrA 1.0.1 (contracts unchanged at 1.26.0 / 2.10.0).
Changes since A.0.0 / 1.0.0
- BUG-1939: dev-tree paths resolve from the executable;
sysuse, the frontend and the notices were lost under a-ffile-prefix-mapbuild and the self-test crashed on the empty result. - BUG-1940:
hausmanwhen V_b−V_B is not positive definite answered chi2 ≈ 1e16 or refused; now Stata's generalized-inverse rule with its note, rank as the degrees of freedom andse_diffper coefficient. - Adoption declarations and SPDX headers across the tree; demo tour corrections; public build, packaging and smoke-test scripts; developer's note.
What is in the DMG: PIET.app for Apple Silicon Macs (arm64), macOS 13.3 or newer: the interface, the CoBrA engine, the bundled sample dataset, LICENSE.txt (GPL-3.0-or-later), NOTICE.txt and THIRD_PARTY_NOTICES.txt.
Not notarized. Ad-hoc signature only; macOS warns on the first launch. Right-click PIET.app → Open, or System Settings → Privacy & Security → Open Anyway, or xattr -d com.apple.quarantine /Applications/PIET.app. See the README's "Download for macOS".
Build provenance: this repository at tag A.0.1, sh scripts/build-macos.sh then sh scripts/package-macos-dmg.sh, on an Apple M1 running macOS 26.6 (release build, -ffile-prefix-map). Corresponding source: this repository at tag A.0.1. Verify the download with the attached .sha256.
Checks on this tree: engine unit tests 112/112 and tests/public_smoke.py in GitHub Actions; the two demo tours (120 and 627 blocks) with zero error blocks; the maintainers' full self-test against the archived engine ALL CHECKS PASSED (needs private fixtures, not part of the public certification).
PIET A.0.0 / CoBrA 1.0.0 — macOS build (2026-11-06)
PIET A.0.0 / CoBrA 1.0.0 — macOS build of 2026-11-06
First downloadable build from the public tree.
What is in the DMG: PIET.app for Apple Silicon Macs (arm64), macOS 13.3 or newer: the native interface, the CoBrA engine, the bundled sample dataset (sysuse fatalities), LICENSE.txt (GPL-3.0-or-later), NOTICE.txt and THIRD_PARTY_NOTICES.txt.
Not notarized. The app is ad-hoc signed only; macOS will warn on the first launch ("cannot check it for malicious software" / "unidentified developer"). Right-click PIET.app → Open, or allow it under System Settings → Privacy & Security → Open Anyway, or run xattr -d com.apple.quarantine /Applications/PIET.app. Details and the reason are in the README's "Download for macOS" section.
Build provenance. Built from this repository at tag A.0.0-public-20261106 with sh scripts/build-macos.sh followed by sh scripts/package-macos-dmg.sh 20261106, on an Apple M1 running macOS 26.6 with the Xcode command-line tools (release build, -ffile-prefix-map). The app reports PIET A.0.0 and CoBrA 1.0.0; the tree includes fixes landed after those version stamps (BUG-1939 dev-tree path resolution, BUG-1940 hausman when the difference matrix is not positive definite, demo tour corrections), so cite the tag and commit, not the version string alone, when reporting an issue.
Corresponding source: this repository at tag A.0.0-public-20261106 (GPL-3.0-or-later).
Verify the download: compare shasum -a 256 PIET-A.0.0-20261106-macos-arm64.dmg with the .sha256 file attached here.
Checks run on this exact tree: engine unit tests 112/112 and the public smoke test (tests/public_smoke.py: sysuse → regress → save → reload, against an independent OLS) through the GitHub Actions workflow; the two demo tours (demos/fatalities/, 120 and 627 blocks) with zero error blocks. The maintainers' full self-test needs private oracle fixtures and is not part of the public certification.
PIET 1.0 Beta 1
PIET 1.0 Beta 1 — v1.0.0-beta.1
This adds an Apple Silicon DMG to the first public source snapshot of PIET + CoBrA.
It has a new Git history containing only the public distribution tree.
No private development history, licensed reference datasets, reference-software
binaries, reference logs, or internal automation configuration are included.
Corresponding source: public beta tag
and the source archives on its GitHub release page.
Changes for public distribution
- PIET now reports
1.0.0-beta.1and shows PIET 1.0 Beta 1 in About;
CoBrA keeps its separate0.41.0engine version. - Downloadable macOS app containing the native interface, CoBrA engine,
synthetic sample, GPL text, and third-party notices. - The DMG is ad-hoc signed and not notarized. macOS may require the user to
allow the first launch in System Settings → Privacy & Security. - Source build instructions and one-command macOS build/test entry point.
- Synthetic sample in place of a third-party research dataset.
- Original dependency licenses and a consolidated attribution file, including
Howard Hinnant's public-domain civil-date algorithms. egen concat,egen cut, andbcal createimplementations withheld pending
provenance clearance; invocation fails explicitly. Calendar reading remains.- Browser fixture mode disabled: statistical output requires native computation.
- Self-contained thread/determinism tests and independent OLS/data IO checks.
Validation scope
See the GitHub Actions result for this exact public commit. The earlier source
snapshot's local checks are recorded in VALIDATION.md; this DMG's checks are
recorded on the GitHub release page. The original private reference corpus is
not part of this release and was not rerun as public-release certification.
No Developer ID signed or notarized installer is provided. The DMG is for
Apple Silicon, requires macOS 13.3 or newer, and was tested on macOS 26.6.2.
Older macOS versions, Windows, and Linux are not validated release targets.
Compatibility is incomplete;
passing the included checks does not certify all estimators or command syntax.
PIET reports 1.0.0-beta.1; CoBrA reports 0.41.0 separately. Include the
public tag and commit when reporting issues.
Install and verify
- Download
PIET-1.0.0-beta.1-macos-arm64.dmgbelow and dragPIET.appto Applications. - The app is ad-hoc signed and is not Apple notarized. If macOS blocks its first launch, follow Apple's Open Anyway instructions only if you trust this release.
- SHA-256:
dd5e577698376393ec88155514c8904ba5dbcea05ec40e9213449f62abfbada3. The matching.sha256file is attached.
Corresponding source: tag v1.0.0-beta.1, commit 4faedef6472cec72083a85ae1ba42e42f24f1538.
Checks on the shipped DMG
Built from that tag on macOS 26.6.2 (Apple Silicon). The public CTest suite passed 3/3; public smoke checks passed for synthetic OLS, DTA roundtrip, and explicit refusal of withheld commands. The app copied from the DMG completed the real WKWebView UI journey with the bundled CoBrA engine and synthetic sample. Disk-image integrity, SHA-256, and the app's ad-hoc signature verified. Both bundled executables target macOS 13.3 or newer. Older macOS versions have not been tested.
PIET + CoBrA — Experimental source beta 1
Experimental public beta — beta-2026.10.12.1
This is the first public source snapshot of PIET + CoBrA.
It has a new Git history containing only the public distribution tree.
No private development history, licensed reference datasets, reference-software
binaries, reference logs, or internal automation configuration are included.
Changes for public distribution
- Source build instructions and one-command macOS build/test entry point.
- Synthetic sample in place of a third-party research dataset.
- Original dependency licenses and a consolidated attribution file, including
Howard Hinnant's public-domain civil-date algorithms. egen concat,egen cut, andbcal createimplementations withheld pending
provenance clearance; invocation fails explicitly. Calendar reading remains.- Browser fixture mode disabled: statistical output requires native computation.
- Self-contained thread/determinism tests and independent OLS/data IO checks.
Validation scope
See the GitHub Actions result for this exact public commit. The local release
checks are recorded in VALIDATION.md. The original private reference corpus is
not part of this release and was not rerun as public-release certification.
No signed or notarized installer is provided. Windows and Linux are not
validated release targets for this snapshot. Compatibility is incomplete;
passing the included checks does not certify all estimators or command syntax.
Internal PIET/CoBrA version output is inherited from development; use the public
tag and commit when reporting issues.