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
Aggregating Data/ LoopHello All, I have a longitudinal panel data set with 633 constituency codes (_pcon) ranging from 0 …
Issue replicating stcox results with clogit using discrete time dataDear Stata Folk Here is some background on what I am doing. I'm conducting an event history analysi…
A For Loop problemI have several .csv data files that I want to import and save using a for loop. The file names have …
marginal effects in logit modelDear members, Currently I am struggling with doing logit regression using panel data. Am using a pa…
BLP CrossectionalI am working on a project where I observe brands over years. I seek to use BLP for demand estimation…
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