CenterOnBudget / getcensus

Load American Community Survey data from the U.S. Census Bureau API into Stata
https://centeronbudget.github.io/getcensus/
MIT License
14 stars 3 forks source link

Fix geography label changes for 2021 5-year ACS #61

Closed c-zippel closed 1 year ago

c-zippel commented 1 year ago

Label was "metropolitan statistical area/micropolitan statistical area", now "metropolitan/micropolitan statistical area"

Impacts geography(metro)

https://www2.census.gov/data/api-documentation/label-changes-to-2021-acs-5-year-geographies.pdf

jedkolko commented 1 year ago

Hello! I'd be very grateful if this bug could be fixed in order to get metro-level ACS 2021 5-year data. GETCENSUS is a terrific public service! Thank you very much -- Jed

c-zippel commented 1 year ago

@jedkolko -- I'm on it! I've got a draft fix (https://github.com/CenterOnBudget/getcensus/commit/aa6a51637d7d0e17a85827d3afefd7076b8e21d0) pending testing. I expect to submit a new version of getcensus to SSC sometime next week.

jedkolko commented 1 year ago

So exciting! Thank you so much. I attempted to edit the ado and related files myself and realized quickly that I was way out of my league.

shingtgen commented 1 year ago

I ran as a test: getcensus b09020_008 b09020_009, sample(5) geography(metro) clear

and the dataset successfully loaded with variable metropolitanmicropolitanstatisti, label "metropolitan/micropolitan statistical area"

c-zippel commented 1 year ago

@jedkolko Updated version with fix is up on SSC. Thanks for weighing in on this issue -- hearing from getcensus users helps us prioritize getting bugs fixed in a timely manner!