sankalpsharmaa/india-plfs — reverse-engineered prompt
Reverse engineered prompt
I want this turned into a simple working Stata workflow for the India Periodic Labour Force Survey raw microdata. The goal is that I can point it at the raw .txt files for the survey years from 2017 to 18 through 2020 to 21, set my local data and code paths once, and run one main script that parses the files, applies the right variable layouts, cleans everything in the right order, and gives me usable processed datasets.
Please make sure the path setup is easy to change, the dictionaries for first visit and revisit files are used properly, and the scripts run in a clear sequence without me having to manually stitch steps together. I’d also like the output and any assumptions around variables and sampling weights to be easy to understand from the existing docs.
If anything in the survey layout changed across years, handle that cleanly or flag it clearly. Look up the official PLFS notes online if you need to.
Want more depth? Deep Reverse