Stata

Getting Started with Stata Tutorial #14: Making, Saving, and Combining Graphs in Stata

July 15th, 2025 by

Once you’ve imported, examined, and cleaned your data, a common next step would be to make some visual displays or graphs. In this article we’ll go over the details of creating, naming, saving, and exporting graphs in Stata.

We will do all of this using syntax, rather than Stata’s “Graphics” menu. If you want a quick lesson on using the menus to make graphs in Stata, check out this article. (more…)


Getting Started with Stata Tutorial #12: Changing Variables to and from Strings

May 29th, 2025 by

From the last post in this series, you should know how to change between numeric types and easily change numeric data We’ll now expand your type-changing skills to include changing string variables with two new commands.   (more…)


Getting Started with Stata Tutorial #11: Editing Variables Using recode and recast

May 12th, 2025 by

From our last posts in this series, you should be comfortable with how Stata handles data editing, as well as with making your own variables. In this post, we’ll talk about commands that edit the content or storage type of your variables in Stata: recode and recast. Let’s start off with the recode command.

(more…)


Getting Started with Stata Tutorial #10: Four Commands to Create New Variables in Stata

April 29th, 2025 by

From our last article, you should feel comfortable with the idea of editing and saving data sets in Stata. In this article, we’ll explain how to create new variables in Stata using replace, generate, egen, and clonevar.

(more…)


Getting Started with Stata Tutorial #9: Saving, Reordering, and Dropping Data

March 17th, 2025 by

Stata makes it a breeze to edit or clean your data. If you’re unfamiliar with using data sets in Stata, check out these blog posts to get a good grasp on importing and browsing data in Stata.

For this tutorial we will be using Stata’s “auto” data set. If you haven’t loaded it in yet, type

(more…)


Getting Started with Stata Tutorial #8: Examining Data in Stata

January 14th, 2025 by

Once you’ve imported your data into Stata the next step is usually examining it.stage 1

Before you work on building a model or running any tests, you need to understand your data. Ask yourself these questions:

  • Is every variable marked as the appropriate type?
  • Are missing observations coded consistently and marked as missing?
  • Do I want to exclude any variables or data points?

(more…)