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
Increase in the number of observations after using RESHAPE commandDear community, My original data are in long shape. When I reshape long to wide there is an increas…
Panel data, want to see the regression results for two time periods and country setsHi, I have a panel dataset of with a variable country, year, university, sat score. (Similar variabl…
Dynamic GMM: select the appropriate lag length for instrumented variablesHello, I am running a one step dynamic gmm model of this kind. My data consists of a N=185 and T=27.…
How to cluster standard errors?Dear all, I am currently doing my master thesis and I would really appreciate some help, since I am…
time series prediction assignmentBackground: As a researcher at the financial economics research department of the Federal Reserve Ba…
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