Skip to content
Analysis of US Senate Data for Rice University STAT 405
R Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
figures
reports
.gitignore
README.md
data.sqlite
fetchData.R
fetchJSON.R
fetchXML.R
finalStat405.Rproj
sampleconfig.R
voteAnalysis.R

README.md

#Repository for STAT 405 Final Project Code This repository contains the code for a colaborative final project produced for Rice University's STAT 405 (Statistical Computing and Graphics) course. It is intended as an exploratory analysis of a US Senate dataset extracted from three major sources (NYTimes Congress API; senate.gov; and govtrack.us). ####You can read all about our work in our final report. ##Database (data.sqlite) We have finally gotten our database up and running. It includes 3 tables:

  • Members (members): A list of the members of congress, sourced from the NY Times Congress API
    • Contains metadata such as name, party, state
    • Values like Total votes, seniority, total votes, missed votes
    • Also contains a value for the percentage of votes with party majority
    • Social media accounts, websites
  • Senate Roll Call Votes (senateRollCalls): Data sourced from XML files on roll call votes provided by the US Senate
    • Used to fetch individual votes later.
    • Lots of columns, some useful like tallies of votes, others less so.
  • Individual Votes (votes): Using XML data from previous tables, fetched individual roll-call vote JSON data from govtrack.us
    • Metadata like roll-call vote number (rollNumber), Name, State, Party
    • Timescale data: congress number, session, year
    • vote (yea, nay, not voting)
You can’t perform that action at this time.