Regwright.

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

What is different, today

AreaStatus
GraphsNot yet: graph, twoway, scatter stop with "not implemented yet". Comment them out or wrap in capture.
MataNot yet.
Specialist estimatorsSee compatibility. Anything missing stops the run with a clear message; nothing is skipped silently.
User-written (SSC) packagesRegwright runs ado-language programs; packages that rely on Mata or plugins will not run yet.
Random numbersSame 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.