Anova in Stata
July 27, 2019Doing analysis of variance (often refered to as ANOVA) in Stata is easy. Let's begin by finding a suitable dependent variable which should…
31 posts
Doing analysis of variance (often refered to as ANOVA) in Stata is easy. Let's begin by finding a suitable dependent variable which should…
On this blog i frequently feature examples from Stata, but also from SPSS, Microsoft Excel and R Studio. They are all are popular software…
Let's have a look at linear regression in Stata by doing a practical example. By using the nlsw88 dataset we'll demonstrate to the extent…
In this example again we'll look at some order data: Here we see a table of orders, grand total for each order and two as of yet empty…
For this tutorial I have imported data consisting of e-commerce orders from an Excel file into Stata and then saved it as a dataset. So we…
In the previous post we looked at regression in Stata by exploring two commands, correlate and pwcorr. In this brief post we'll explore…
In this post we'll briefly be looking at regression in Stata by exploring two commands, correlate and pwcorr. The difference between these…
The list command is one of the most useful commands in Stata when inspecting data. In this post we'll look at some ways we can list the…
In another post we looked at analyzing a git repository by the use of external software. This is of course possible to do with Stata as well…
Let's look at two statistical concepts commonly used to describe a distribution - skewness and kurtosis. Skewness is a measurement of the…
Whenever you get your hands on a new dataset you probably want to get as much insight as possible, as quickly as possible so that you know…
In this post we'll look at some Stata tips that might be useful if you're coming from a SQL background (like myself). This will likely be a…
The net command in Stata is a tool that allows users to install and manage user-written packages from the internet. With net, it's possible…
In a another post we talked about scatter plots and the possibility of overlaying multiple types of plots on top of eachother. This is…
The webuse command is used to load datasets directly from the Stata website. This is convenient as you dont have to download datasets…
Effectively handling missing data in Stata largely comes down to dealing with how Stata treats missing values to begin with. Stata treats…
The notes command is used for attaching notes to a variable. Can be useful in when it might be hard to interpret a variable, or when any…
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…
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…
This post will go through the basics of setting up Source{d} on Windows.
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…
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…
When working with a continous variable such as income it is often needed to get an overview its distributional properties. Let's look at the…
For the purpose of this tutorial, I'm gonna be using the sample data set demo.sav, available under installdir/IBM/SPSS/Statistics/[version…
In a previous post we looked briefly at the summarize command, let's look a bit deeper. When opening a new dataset it's a great way to get…
Some of the most basic utility commands to summarize, describe and get an overview of your data are When opening a new dataset it's crucial…
In this short post we'll look at importing data from an Excel file into Stata. For this example we'll use some training data from another…
In order to browse or edit data cells in Stata, the browse and edit commands are the most commonly used. The difference between those two…
Stata is a powerful statistics package, that has been around since the mid '80-s or so. And it sure looks like it! That was my first…