Statistical analysis in your browser
Open data, write do-files, and run statistical commands without installing software. stats.camp implements a growing subset of Stata syntax.
This complete example summarizes scores from 24 synthetic student records. No account is needed.
clear
import delimited "data/student_scores.csv"
summarize math read write
by race: summarize math
summarize math, detail
Sample data included. Opens in a new tab; click Run.
Browse the command reference for syntax, options, and more examples.
How to begin
- Open the example above. Its data and do-file load together.
- Click Run in the app to calculate the results.
- Edit a command and run it again. For example, change
summarize math, detailtosummarize read, detail.
The summarize reference explains the syntax, options, and results.
Work with your own data
In the example workspace, use Upload Files in the file panel or drag a file onto the file list. Click its name to open it. A dataset opens with an import command; a do-file opens ready for you to click Run.
Dataset formats include .dta, CSV, Excel, and Parquet. Add any files used by a do-file and update its paths to match the project. The .dta guide and do-file guide explain the steps.
Calculations run on your device. Files added to an anonymous example stay in this browser and are not synced to the public example repository.
Save and continue your work
Use the Save button to save commands as a do-file in the project. To keep a separate copy, right-click a file in the file list and choose Download. Browser storage belongs to the current browser profile; clearing site data can remove locally stored work.
To create and sync your own projects, open the app and sign in with GitHub. GitHub-backed projects can sync automatically as well as through the Sync button. See Data and privacy for browser storage, synchronization, the optional AI assistant, and analytics.
Find a command for your task
- Import a CSV file
- Calculate row means and totals
- Find and remove duplicate records
- Reshape data between wide and long
- Compare means with a t-test
- Compare two groups with a rank-sum test
- Fit a linear regression
- Calculate fitted values and residuals
Each reference explains the command and includes a complete example. Browse all command references or explore published research packages.
Check an existing workflow
stats.camp is independent software; it does not run Stata itself. Command and option coverage varies, and the complete Stata language and community package ecosystem are not available.
Start with the supported-command list, then read the relevant command references. Check the results when adapting an existing analysis, especially if it depends on uncommon options or additional packages.