Harmonized CHARLS Creation Code
The Harmonized CHARLS version C dataset is created using data from Wave 1, 2, 3, and 4 of CHARLS.
Download the Harmonized CHARLS Stata Creation Code.
To run the Harmonized CHARLS Creation Code in Stata:
- Store all CHARLS data files for Wave 1, 2, 3, and 4 on your computer.
- Edit lines 13-16 of the Stata Creation Code to list the folder location of the CHARLS Wave 1, 2, 3, and 4 data and edit line 17 to list the folder location where you would like to save the Harmonized CHARLS dataset.
If you would prefer to work with the Harmonized CHARLS dataset in a statistical package other than Stata, you can convert the Harmonized CHARLS Stata dataset using a program such as Stat/Transfer. If you do not have access to Stat/Transfer, you may be able to read the .dta dataset into your stat package using an “import” or “get” function. When reading a .dta dataset into another package, it is best to first save the dataset in a Stata version 12 format using the command saveold.