Data Preparation
Learn data preparation steps for statistical inference.
We'll cover the following
Tasks
We need to complete the following tasks for data preparation:
- Remove all objects to clean the workspace in R.
- Create a
Project
folder to hold the original Penn World Table data, program, and output files. - Create a well-documented R program to read the original dataset into R.
- Inspect the imported data to make sure the original data is imported into R properly.
- Clean possible data problems.
- Create a new dataset using a subset of the original dataset.
- Create new variables for later use.
- Install the required add-on packages.
We use the following add-on packages in this section:
DataCombine
ggplot2
Rmisc
stargazer
We use
install.packages("DataCombine")
, to install these packages once first. At the end of data preparation, we have the clean dataset saved into a new R dataset,pwt7g
in theProject
folder.
Get hands-on with 1400+ tech skills courses.