Data Preparation for Regression Analysis
This folder contains data and Stata scripts to create the dataset for regression analysis. If you prefer to skip the data preparation step, the final dataset is also available at Here.
-
The DataPreparation zipped folder contains all source data needed for this step.
-
The STATA script is developed to merge data from different sources for regression.
Instructions:
-
Please download the DataPreparation zipped file and uncompress it to have the “DataPreparation” folder in your working directory.
-
Make sure that the working directory is specified properly in the “cd” command (included in the Stata code).
-
Create a “Data” folder in the working directory to save output data.
Major steps in this STATA code includes:
a. Reshape farm share data
b. Prepare population, urbanization, GDP, access to electricity data from World Bank
c. Prepare gross production values, agricultural value added and land data from FAOSTAT
d. merge all data sets.
The final dataset is also available to download if you prefer to skip the data preparation step.