## Order Variables in Stata

When there are many variables in the data, you might want to relocate them in a certain manner that will make it easy for you to use them in future. For instance, in larger data sets, it becomes difficult to identify important variables and look them up in data editor. The variables that are used …

## Using loop in Stata

What is a Loop? When we need to perform certain tasks or operations that are repetitive in nature, or where there is a need to run the same kind of command over and over, we use loops. Loops, in Stata, allow us to run a command (or a set of commands) as many times as …

## How To Check Normality of a Variable In Stata

This article will go over how we can check the normality of a variable in Stata. Quite often, it is thought necessary for dependent and independent variables in a regression to have a normal distribution. Though sometimes confused with the normality assumption of regression, however, it is the distribution of the error term that is …

## How to Reshape Data from Long to Wide form in Stata

This article will go over, in detail, about the reshape command in Stata. This article is motivated by Chapter 9 Data Management Using Stata by Michael N. Mitchell. of It is worth starting by looking at why exactly we need to use this command. The first thing we need to understand before diving into reshape …

## Enter Questionnaire Data in Stata | Survey Data in Stata

Questionnaire/Survey data is called primary data as it is collected directly by researchers for their study and analysis from the primary sources of interest. When we use data collected by someone else for our analysis, it is called secondary data as it is not obtained directly by ourselves. Download Example File This article will go …