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...
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...