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

With geography(county), do not switch geoid() and countyfips() #39

Closed c-zippel closed 2 years ago

c-zippel commented 3 years ago

Pretty sure these shouldn’t be switched (on line 345) as geoid() takes the full county GEOID (state FIPS + county FIPS) whereas countyfips() does not require the state FIPS prefix and does require statefips() be specified. Either of these works: geography(county) geoid(51013) geography(county) statefips(51) countyfips(013) This does not: geography(county) countyfips(51013) Trying to recall why I originally wrote it switching them...