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

Certain households see changes in head_age, not reflected in age #26

Open
prrathi opened this issue Feb 21, 2021 · 1 comment
Open

Certain households see changes in head_age, not reflected in age #26

prrathi opened this issue Feb 21, 2021 · 1 comment

Comments

@prrathi
Copy link
Contributor

prrathi commented Feb 21, 2021

For example, these are the instances of hh_id of 2029172029001.0 from the data in psid_lifetime_income.pkl outputted by psid_data_setup.py.

Screen Shot 2021-02-21 at 15 09 11

@MaxGhenis
Copy link
Contributor

Thanks @prrathi. This looks to be due to the logic of

  1. Taking min(head_age) per hh_id, then incrementing it according to the year (code); in this case, that's 18
  2. Removing records with age < 20 (code); i.e. the first year this hh_id showed up was probably 1975, but it was dropped.

More fundamentally, this shows that the household head for a given household can change, maybe due to death or divorce. @jdebacker, how should these be handled?

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