Run do-files in your browser

Keep commands together in a reusable script and run supported workflows without a desktop installation.

Try the live demo View supported commands

Independent software. Not affiliated with, sponsored by, or endorsed by StataCorp LLC.

What the do-file runner does

A do-file is a plain-text record of an analysis. stats.camp can store .do files inside a project, run them in order, and show command output in the browser. Supported scripting includes locals, globals, and common loop forms.

Runnable example

import delimited "hsb2.csv", clear

local scores math read write
foreach score of local scores {
    summarize `score'
}

regress math female i.race, robust

Save the snippet as a new .do file in the live demo and run it. It loads the teaching data, summarizes three score variables with a local macro and loop, then estimates a regression.

Before running an existing project

Do-files can call unsupported commands, options, external files, user-written packages, or operating-system features. Package installation and the complete community ado-file ecosystem are not available. Check dependencies line by line and use the compatibility table as a starting point, not a guarantee of identical behavior.

Related guides

Try the workflow

Open the live project, inspect the existing do-file, and adapt the example above. No stats.camp account is required for the demo.

Open live demo