This repository consists of the clean data dump generated from the latest household consumption and expenditure survey (HCES), by the NSS. The raw microdata is publicly accessible and can be downloaded here.
The repository consists of the following files:
01_docs
: This consists of all the survey documentation, including questionnaire, file structure, caveats, state codes etc02_code
: This has Stata do files which generate clean data files03_raw
: This consists of all the raw files, taken from the NSS site04_clean
: This has all the level-wise cleaned dta files
The folder 02_code
has the following files
0_master.do
: Sets root directory, folder names etc1_clean.do
: Extracts all variables from raw txt files, by each level and preliminary cleaning
To generate the files in 04_output
, do the following
- Download and unzip the repo
- Open the state project
hces.stpr
. From within the project, open the two files in02_code
- Run both files.
This is just the level wise data dump. Further cleaning is still needed. For instance, certain dummy variables need to be recoded, variables need to be labelled, and categorical variables need to be encoded. I will be working on this over the next few days, so stay tuned!