statastates
statastates copied to clipboard
Stata module to add U.S. state identifiers to dataset.
It could be worth adding `replace state = subinstr(state, uchar(160), " ", .)` to the [state(string)] version. This replaces the unicode "NO-BREAK SPACE" by a regular one.
Code has been checked, typos fixes, documentation updated, option for ICPSR codes added.
thanks for the package! i did notice that territory FIPS codes (Guam, PR, VI) did not show up. i may branch and add them myself. -p
added following territories: AS, GU, MP, PR, VI