Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling missing variables from codebook that are present in data and crosswalk files #53

Open
maqifrnswa opened this issue Sep 23, 2024 · 1 comment

Comments

@maqifrnswa
Copy link

maqifrnswa commented Sep 23, 2024

First off, thank you! This project is so helpful!

I came across a few variables that are missing from PSIDcodebook.xml but are in the data and psid.xls. I know you don't maintain any of those files, but it does cause makePSID to error out. Should there be a fallback in those cases? Maybe if it is present in the .xls, but not in the xml, it still processes everything but leaves the _label column blank? I think that's the only consequence of not having the codebook.

Example variables that are missing in the xml files but are in the xls file:

  • V13500 (spouse, race mention 1). Workaround: It's identical to V13501, so I just edited the xml file to copy that and changed references to race 2 to race 1
  • ER38263A1, ER44236A1, ER39360A1, ER45333A1 (head/reference and spouse "other chronic conditions"). Workaround: These are the same as ER49574 or ER50692.
@aaowens
Copy link
Owner

aaowens commented Sep 24, 2024

It is a good idea to not error and leave the _label blank. I'll look at it in a week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants