Country Coding Program for Stata: statetocow
statetocow creates a variable within a dataset containing COW codes, according to a string variable of country names. The simplicity of the program makes it user-friendly, and useful for efficient data management. The program and help files are in this downloadable folder (updated 12/28/2022). Save the contents of the folder in the s folder of your .ado directory (for instance C:\username\ado\plus\s). The statetocow program incorporates additional spellings for each state.
statetocow creates a variable within a dataset containing COW codes, according to a string variable of country names. The simplicity of the program makes it user-friendly, and useful for efficient data management. The program and help files are in this downloadable folder (updated 12/28/2022). Save the contents of the folder in the s folder of your .ado directory (for instance C:\username\ado\plus\s). The statetocow program incorporates additional spellings for each state.