Docs
Getting started, and moving from Stata
Install
Download the binary for your platform from the latest release (Linux x86-64/arm64, macOS Apple silicon/Intel, Windows x64) and put it on your PATH. It is one file with no dependencies.
regwright --version regwright licence install RW1.… # optional: Pro, CI/Server, Team or Site key
Run a do-file
regwright run analysis.do # prints the log to the terminal regwright -b do analysis.do # batch: writes analysis.log next to it, like stata -b regwright # interactive prompt
Datasets are found the way Stata finds them: relative to the do-file's folder, or the folder you cd into. For sysuse/webuse, point Regwright at a folder of datasets with --data-dir or the REGWRIGHT_DATA environment variable.
In CI
- uses: Huckcity/regwright-action@v1
with: { licence: ${{ secrets.REGWRIGHT_LICENSE }} }
- run: regwright -b do code/master.do
The exit status is non-zero when the do-file stops with an error, and the log ends with r(#); exactly as Stata's would, so a failing replication fails the build.
What carries over unchanged
- Do-file syntax: comments,
///,#delimit, macros (local, global, nested, extended functions), loops,if/else,capture,quietly,by/bysort, user programs withsyntaxandreturn. .dtafiles from Stata 13 to 19 (formats 117–119), with value labels, variable labels, notes and strLs, read and written.- Output layout: tables print like Stata's, so diffs against old logs are meaningful.
- Missing values
.and.a–.z, storage types (byte, int, long, float, double, str#, strL) and float-precision behaviour.
What is different, today
| Area | Status |
|---|---|
| Graphs | Not yet: graph, twoway, scatter stop with "not implemented yet". Comment them out or wrap in capture. |
| Mata | Not yet. |
| Specialist estimators | See compatibility. Anything missing stops the run with a clear message; nothing is skipped silently. |
| User-written (SSC) packages | Regwright runs ado-language programs; packages that rely on Mata or plugins will not run yet. |
| Random numbers | Same set seed syntax; matching Stata's exact random streams is in progress, so results that depend on random draws can differ. |
How we test
Every example printed in the Stata manuals is replayed and compared word for word with the printed output; see evidence. Replication packages from Harvard Dataverse are run and compared with their authors' Stata logs.
Stata is a registered trademark of StataCorp LLC. Regwright is an independent implementation by ALGD LTD and is not affiliated with StataCorp.