Skip to content
10 chapters · 35+ exercises · real datasets

Stata Practice

Type Stata commands against real Kenyan data: 21 months of commercial bank rates, 14 half-years of pension industry allocation, and 14 observations of mobile-money volumes. Get instant feedback on your syntax, see the canonical answer, and view the output the command would produce. Everything an economist uses Stata for, in one place.

Difficulty up to
0/36 done · 0%DatasetsTips

How Stata thinks: do-files over point-and-click, working directory as state, log files as proof.

Stata is two things at once: an interactive command line where you type one command and see the result, and a scripted environment where you save those commands in a do-file and replay the entire analysis later. Working economists almost never use the menus. They write do-files because do-files are reproducible, version-controllable, and email-able.

Three commands you'll type in your first ten minutes of any session: pwd shows where Stata thinks you are, cd changes that location, and log using , replace starts a transcript of everything that follows. The log file is your proof of what you actually did. Most journals now require it as part of replication packages.

Stata's help system is unusually good. help opens the manual entry, search looks across the official docs and the user-contributed package archive. Use them often.

Chapter 1 · Exercise 1Easy

Get help on the summarize command

Open the help file for Stata's summarize command.

stata.do
Checking your access to Mwalimu…