Is there a way to determine 2012 presidential margin for a city on DRA? (user search)
       |           

Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 09:50:14 AM
News: Election Simulator 2.0 Released. Senate/Gubernatorial maps, proportional electoral votes, and more - Read more

  Talk Elections
  About this Site
  The Atlas
  Is there a way to determine 2012 presidential margin for a city on DRA? (search mode)
Pages: [1]
Author Topic: Is there a way to determine 2012 presidential margin for a city on DRA?  (Read 741 times)
lfromnj
Atlas Politician
Atlas Icon
*****
Posts: 19,222


« on: July 23, 2021, 10:50:23 AM »

Is there a way to determine 2012 presidential margin for a city on DRA for Texas by using PVI President 2012/2016 or Composite 2012-2016?

Yeah use PVI and reverse that
Here's a python code that just requires raw vote or percentage for 2016
Quote
country = 48.2/(46.1+48.2)
country2012=51.1/(47.2+51.1)
C2016 = float(input("Input 2016 Clinton raw Votes or Percentage"))
T2016= float(input("Input 2016 Trump raw votes or Percentage"))
PV = float(input("Give PVI value 2012/2016 negative if R"))
PVI = PV/100
p2016= C2016/(C2016+T2016)
PVI2016=p2016-country
PVI2012 =2*PVI-PVI2016
Obama= PVI2012+country2012
print ("Obama share is",Obama*100)
print ("Romney share is",(1-Obama)*100)
Logged
Pages: [1]  
Jump to:  


Login with username, password and session length

Terms of Service - DMCA Agent and Policy - Privacy Policy and Cookies

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Page created in 0.022 seconds with 13 queries.