Grouping observations in Stata
April 28, 2019Sometimes you need to split a variable into groups. There are several ways to achieve this in Stata, in this post we'll use the egen command…
Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin
Sometimes you need to split a variable into groups. There are several ways to achieve this in Stata, in this post we'll use the egen command…
It's possible to create indicator variables from categorical variables as well, by using the tabulate command. Let's have a look: Here we…
As an alternative to dropping variables, it's possible to choose which ones to keep in a dataset. You can use the Variables Manager in Stata…
This post will go through the basics of setting up Source{d} on Windows.
In this post we'll continue looking at factor variables, and in particular how they can interact with continuous variables. Interactions can…
If you have two (or more) datasets that you want to combine, this can be achieved by using either the append or merge commands. The main use…
Dropping values in Stata is achieved by the drop command. Let's load the auto training dataset and create a new variable: That's just a new…
In Stata categorical or binary, indicator, dummy variables (used interchangably) are treated as factor variables. Examples of categorical…
In a previous post we looked at performing basic graphic visualizations in Stata. It is also possible to save graphics in a number of…
Generating new variables in Stata is mainly achieved by use of the gen command. The simplest way to use the is by appending the newvar…
