aaowens / PSID.jl

Quickly assemble data from the Panel Study of Income Dynamics (PSID)
MIT License
25 stars 9 forks source link

2019 wave #41

Closed Donquicote closed 2 years ago

Donquicote commented 3 years ago

Would it be possible to add support to the 2019 wave? The list of required files prevents from it since it asks for the up to 2017 cross-year individual file "ind2017er.zip".

aaowens commented 3 years ago

You could update the hash in https://github.com/aaowens/PSID.jl/blob/master/src/allfiles_hash.json to the hash of the 2019 file, which would at least pass validation.

The bigger issue is the codebook, which is out of date. I'll update it at some point but it might be a bit.

This is how I constructed the codebook in case you can't wait that long:

The PSID data center lets you download an XML codebook if you submit a list of variables. Using the cross-year index Excel file, I collected every (several thousand) variable code and submitted that as the list. Then there is some malformed character in the XML, so it doesn't parse correctly. The PSID staff told me to go to variable V1350 in the codebook and remove that character.

aaowens commented 2 years ago

Added 2019. The PSID now distributes the XML codebook too (see the link in my instructions)