Getting started

Run Stata-style commands on a Chromebook

Use stats.camp in your Chromebook’s browser to load data and practice Stata-style commands. Start with a sample dataset, then upload a class exercise or your own files. The sample workspace does not require a sign-in.

Start in Chrome

  1. Open the example below in Chrome. Wait for the Files panel and the script tab to load.
  2. Click Run above the commands.
  3. Read the summaries beneath the commands. Choose Show data if you also want to view the underlying table.

This runs in the browser; you do not need to install a Linux environment. stats.camp is a separate application with its own command support. If an assignment requires Stata itself or a particular add-on package, check that requirement before starting.

Practice with student scores

The script loads a bundled dataset and summarizes reading, writing, and mathematics scores. It also reports mathematics scores separately for each value of race, then gives a detailed summary for mathematics.

clear
import delimited "data/student_scores.csv"
summarize math read write
by race: summarize math
summarize math, detail
Open example in browser

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

After clicking Run, compare the observation counts and means in the first table. The grouped tables show how the mathematics summary changes across groups. The final table adds percentiles, including the median.

For a first change, enter summarize read, detail in a command entry and press Enter. This gives the same detailed summary for reading scores without reloading the data.

Use files from a class or assignment

Download the provided files to your Chromebook, then choose Upload Files in the workspace’s Files panel. You can select a .do script and its data files together.

Click a .do file to open the script, then click Run. Click a .dta file to load the dataset automatically in a new analysis tab. See running your own do-file for adjusting data paths, or opening a .dta file for inspecting data without a script.

On a managed Chromebook, the browser must be allowed to open stats.camp and fetch the example project from GitHub. If the workspace cannot load, check your school’s website restrictions.

Keep your files between sessions

Save commands with the disk icon labelled Save commands as .do file. Then right-click the saved file in Files and choose Download to keep a copy on your Chromebook.

The public example does not sync your changes to GitHub. Browser data can be cleared, especially on shared devices, so download work you want to keep. To use a project that syncs, sign in with GitHub and choose New project on the Projects page. This creates a private GitHub repository.