Codebook command in Stata
May 09, 2019The codebook command in Stata is useful for initial data exploration. Like tabulate or inspect it provides a quick overview of a dataset…
Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin
The codebook command in Stata is useful for initial data exploration. Like tabulate or inspect it provides a quick overview of a dataset…
Lets look at some useful tips for handling missing values in Stata, as those can cause a lot of problems if not taken care of properly when…
The two main commands used in Stata when working with strings are tostring, destring, encode and decode. For this example, let's load the…
Instead of using the split command for string manipulation we can use the word function. Looking at a previous example of transforming the…
Let's look at another example of recoding in Stata, this time using the split command. For this example we'll use the variable make in the…
All the time when using the Stata command editor or console (or whatever you wanna call it) I find that I would want to be able to use some…
Performing a Kernel density estimation in Stata is a simple task. In particular it can be visualized by way of a kernel density plot which…
Let's say you want to make some temporary in-memory manipulations of your data without having to reload the whole dataset in order to get…
Dropping observations in Stata is easy. Looking at the nlsw88 training dataset for instance, let's say we'd want to narrow the survey to…
Creating binary variables in Stata is useful for many purposes, for example if you quickly need to get an overview of a variable with a…
