voteview / WebVoteView

Webbased rollcall vote visualization software
MIT License
35 stars 5 forks source link

How is party loyalty calculated? #347

Closed adamboche closed 6 years ago

adamboche commented 6 years ago

image http://128.97.229.160/person/41304/rafael-edward-ted-cruz

How is the 95% calculated? Is it just (number of votes cast agreeing with own party's majority position) / (number of votes cast)?

Can we document these calculations somewhere, or make them hover-text or something?

aaronrudkin commented 6 years ago

Luke wrote this code originally. I do plan on going through it, rewriting the code to clean it up a little bit, and then documenting it. Thanks for the reminder. It's currently documented in voteview_metadata/updateDB/memberEdits/add_party_loaylty.py

adamboche commented 6 years ago

@lukesonnet Can you confirm it's the member's number of votes with their party's majority position / member's number of votes total?

adamboche commented 6 years ago

Luke confirms: That's correct, with the party majority position. Only clear yeas and nays count in denominator.

aaronrudkin commented 6 years ago

Dev is updated to have a tooltip to this effect (I also rewrote how this table was assembled)

https://vanguard.voteview.com/person/40915/joe-manchin-iii