Hi y'all
I would be most grateful if anyone out there has written a simple code to categorize states in Democrat, Republican and Swing state in 2016. I have 4000+ observations that have states listed as numerical so if anyone already has a code to generate new variable and segregate the numeric state into D, R, or S (for 2016 results), that would be most helpful. Does anyone already have it? Thank you.
Related Posts with egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election results
Match value labels from two different datasetsDear Statalisters I have two different datasets with information on States and Districts. Since the…
Producing three way graphHello Statalist I would like to produce a three way graph on stata like the one provided in the att…
How to test *coefficient estimates across samples using the same model?Dear All, I have the below models. I run the same model in two different samples (firms which have …
Testing for Serial Correlation and Individual EffectsHi, Sorry if I am sending a duplicate question, but I found no equivalent question in the list. I a…
msymbolI'm quite new to state. I wanted to make the graph I created (which I'm also not sure of if its corr…
Subscribe to:
Post Comments (Atom)
0 Response to egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election results
Post a Comment