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

Fix_lpr drop some households categories to 0 sample for hh_transitions #56

Open
tianxie1995 opened this issue Jun 26, 2024 · 3 comments

Comments

@tianxie1995
Copy link
Collaborator

No description provided.

@tianxie1995
Copy link
Collaborator Author

Issue: fix_lpr step will replace some households with a set mappings in order to reduce/increase workers, this process will potentially dropped some households categories to 0 which will prevent hh_transition

How to reproduce the issue:

  • in year 2021, hh categories contains households
hh.query('(age_of_head < 35.0)&(cars < 2.0)&(persons >= 5.0)&(children >= 3.0)&(age_of_head >= 25.0)&(workers >= 1.0)&(workers < 2.0)&(persons < 6.0)&(cars >= 1.0)&(children < inf)&(large_area_id == 5.0)&(income < 31705.0)&(income >= 0.0)&(race_id == 4.0)')
  • but after fix_lpr step, its count drop to 0

@tianxie1995
Copy link
Collaborator Author

Implemented a fix to household_transition which will append hh_seeds and person_seeds at the start of the transition so sampling will at least have baseyear seed samples.

@tianxie1995
Copy link
Collaborator Author

tianxie1995 commented Jun 28, 2024

Year 2050 controls zero sample category:

large_area_id                       5.0
race_id                             2.0
age_of_head_min                    18.0
age_of_head_max                    25.0
persons_min                         2.0
persons_max                         3.0
children_min                        0.0
children_max                        1.0
cars_min                            1.0
cars_max                            2.0
workers_min                         2.0
workers_max                         3.0
income_min                     113184.0
income_max                    1534133.0
total_number_of_households          7.0
ob                                  0.0
Name: 2050, dtype: float64

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

1 participant