Group Abstract Group Abstract

Message Boards Message Boards

DW-NOMINATE and Roll-Call Voting Behavior in the US Congress

Posted 9 years ago
POSTED BY: Alan Joyce
3 Replies

For anyone still interested in this topic, we've published an update to this resource (still at https://datarepository.wolframcloud.com/resources/DW-NOMINATE-for-US-Congress). There have been a few changes in the source data structure, reflected in the updated resource, but now all the data is updated through the 117th Congress.

current = 
  Association /@ 
   GroupBy[
     Select[
      ResourceData[
       "DW-NOMINATE for US Congress"], #CongressNumber == 
        117 &], #PartyCode &][All, 
    All, #Name -> {#NominateDim1, #NominateDim2} &];
ListPlot[Values@current[[All, All]], 
 PlotStyle -> {Red, Blue, Darker[Green]}, ImageSize -> Full, 
 PlotTheme -> "Detailed"]

enter image description here

POSTED BY: Alan Joyce

One more view, taking the median value by party for each congress:

median = (Median /@ 
      GroupBy[#, #CongressNumber &][[All, All, "CoordDim1"]]) & /@ 
   GroupBy[dataWithNames, "PartyName"];

ListPlot[median[{"Republican", "Democratic"}], Joined -> True, 
 Filling -> Axis, PlotStyle -> {Red, Blue}]

enter image description here

POSTED BY: Alan Joyce

enter image description here - another post of yours has been selected for the Staff Picks group, congratulations! We are happy to see you at the top of the "Featured Contributor" board. Thank you for your wonderful contributions, and please keep them coming!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard