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 Coding 0,1,2 for political states in 2016
Combining observations with the same year and id in a single datasetI have some data that looks like this: no. id year var1 var2 var3 1 1 2000 50 . . 2 1 2000 . …
Convert 1K to 1000 and 1M to 1000000Hello everyone, I need help with converting a particular variable to numbers. The variable in questi…
Syntax to know the menu path of the commands that we use in the do fileGood night I would like to know if there is a syntax to know the menu path of the commands that we u…
Mixed logit and ordered outcome models (help please)Good evening. My name is Sean and I am a current graduate student, in an advanced econometrics class…
Problems converting string variable to date/time formatHi, I have a date/time variable that is a string and looks as follows: hh.mm.ss DD.MM.YYYY. I'd lik…
Subscribe to:
Post Comments (Atom)
0 Response to Coding 0,1,2 for political states in 2016
Post a Comment