Getting started

Open a .dta file in your browser

A .dta file is a dataset saved in Stata format, with rows of observations and columns of variables. Open one in stats.camp to view the table, check its variables, and calculate summary statistics, without an account or installation.

No account needed. The dataset is processed in your browser and is not uploaded.

Open your own .dta file

  1. Choose Open your .dta file at the top of this page. A new, empty project opens.
  2. Choose your .dta file, or drop it onto the card. It is copied into the project in your browser; it is not uploaded.
  3. The project opens with a do-file that loads your dataset and describes its variables, and the data table appears beside it. If the table is hidden, choose Show data.
  4. In the blank enter command here field below the output, type summarize and press Enter to calculate summary statistics for the numeric variables.

The project is saved in this browser only. Reopen it from Recent local projects on this page or from the projects page in the app. Your commands are saved to the do-file as you type, and the dataset loads again each time you reopen the project while the do-file is unchanged.

When a command fails, its text and error message are reported automatically to help fix problems; for the commands the project runs on its own, the dataset name is removed first. See data and privacy.

Try a sample dataset

This example includes a small student-score dataset, so you can try it before choosing your own file. Open the example and click Run to execute the complete script.

clear
use "data/student_scores.dta", clear
describe
summarize math read write
list id female race read write math in 1/6
Open example in browser

Sample data included. Opens in a new tab; click Run.

use loads the bundled .dta file. describe shows the variables and their types; summarize reports the count, mean, standard deviation, minimum, and maximum of the three scores. The final command prints six observations.

The synthetic sample has 24 rows and six variables. The writing score has only 23 values in its summary because one value is missing. The table shows the dataset itself; command output describes or summarizes it.

Check the data before calculating

Use describe to find the exact variable names. Then replace the score names in summarize math read write with numeric variables from your own dataset. A text column is not summarized as a number.

Check the observation count for each variable. Missing values are left out of that variable’s summary, so two columns can have different counts. See the summarize manual for grouped summaries and percentiles.

Keep a copy of your work

Projects opened from your own file, and the public example workspace, are not synced to GitHub. Browser storage can be cleared, so keep a copy outside the browser: in your own project, choose Download do-file at the top of the page. In the example, choose the disk icon labelled Save commands as .do file, then right-click that file in Files and choose Download.

A .do file stores commands; it does not contain the dataset. Keep your original .dta file too. For projects that sync across devices, sign in with GitHub and choose New project on the Projects page. This creates a private GitHub repository, and files in that project can sync to GitHub.