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

Add support for ZCTAs and 2020 age and sex data #123

Closed
wants to merge 68 commits into from

Conversation

rossellhayes
Copy link
Contributor

@rossellhayes rossellhayes commented Dec 1, 2023

This PR adds support for using ZCTAs as the geographic unit for predictions. It also adds support for making predictions including 2020 age and sex data. Previously, only 2010 data could be used to make predictions with age and sex.

In order to accomplish this, this PR pulls 2020 data from the Demographic and Housing Characteristics File (DHC) rather than Redistricting Data (PL 94-171). PL 94-171 does not report age and sex data and does not report any data at the ZCTA level. I made an effort to ensure that data that was saved with the previous version of get_census_data() can still be used to make predictions.

This PR is branched from #120.

solivella and others added 30 commits September 6, 2023 16:41
…-tract

fix(voters): use tract NY-061-014900 instead of 015100
…` into `census_geo_api()`; turn `census_geo_api_zcta()` into a helper function
…ENSUS_API_KEY")` for backwards compatibility
@1beb
Copy link
Collaborator

1beb commented Dec 4, 2023

Closing this one because it was against main. PR'd these into dev branch.

@1beb 1beb closed this Dec 4, 2023
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

Successfully merging this pull request may close these issues.

3 participants