cbgoodman / countyfips Goto Github PK
View Code? Open in Web Editor NEWStata program for merging U.S. county identifiers
License: MIT License
Stata program for merging U.S. county identifiers
License: MIT License
I believe that after the latest update, the dataset contains two separate observations for counties named "St. ...": one starting with St. and another one starting with St. This is great, but I believe this is problematic when matching on State and County fips: for instance, when I run
countyfips, statefips(my_state_fips_codes) countyfips(my_two digit_county_fips_codes)
I get the following error:
variables state_fips county_fips do not uniquely identify observations in the using data
r(459)
I was able to verify that the "St. ..." were the problematic observations, by running the following on the master countyfips data:
bysort state_fips county_fips: gen counter = _n
tab counter
I get the that 30 counties have a repeated observation. All of these are indeed counties named "St. ... "
Hi Chris,
(Or person who follows the bugs for countyfips)
I was getting an error in the Linux platform of UGA supercomputer, but not in my personal computer with a sample of the data. After checking my dataset I decided to run something very simple:
clear all
set obs 1
gen fips=1001
countyfips,fips(fips)
*** The output
(all newnames==oldnames)
(variable fips was float, now double to accommodate using data's values)
variable fips does not uniquely identify observations in the using data
r(459);
This does not happen in my laptop running in stata for windows. I solved the issue moving the DS to Linux, but it is a rather cumbersome and it loses the straightforwardness of the command
I hope thought you might want to know.
Best,
Felipe L
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.