State ICPSR code
Year of election
=1 if open seat
Population
Democratic presidential vote share at t-1
Democratic margin of victory at t
Democratic vote share at t-1
Democratic vote share at t-2
Democratic vote share at t+1
Democratic vote share at t+2
=1 if Democratic won at t-1
=1 if Democratic won at t-2
=1 if midterm election at t
=1 if presidential election at t