---
title: "Congressional Representation"
author: "John Ladd"
date: "25 October 2021"
output:
  html_document:
    code_folding: hide
---
library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ──
## ✓ ggplot2 3.3.5     ✓ purrr   0.3.4
## ✓ tibble  3.1.6     ✓ dplyr   1.0.8
## ✓ tidyr   1.2.0     ✓ stringr 1.4.0
## ✓ readr   2.1.2     ✓ forcats 0.5.1
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()
library(tidymodels)
## ── Attaching packages ────────────────────────────────────── tidymodels 0.2.0 ──
## ✓ broom        0.7.12     ✓ rsample      0.1.1 
## ✓ dials        0.1.0      ✓ tune         0.2.0 
## ✓ infer        1.0.0      ✓ workflows    0.2.6 
## ✓ modeldata    0.1.1      ✓ workflowsets 0.2.1 
## ✓ parsnip      0.2.1      ✓ yardstick    0.0.9 
## ✓ recipes      0.2.0
## ── Conflicts ───────────────────────────────────────── tidymodels_conflicts() ──
## x scales::discard() masks purrr::discard()
## x dplyr::filter()   masks stats::filter()
## x recipes::fixed()  masks stringr::fixed()
## x dplyr::lag()      masks stats::lag()
## x yardstick::spec() masks readr::spec()
## x recipes::step()   masks stats::step()
## • Learn how to get started at https://www.tidymodels.org/start/
library(GGally)
## Registered S3 method overwritten by 'GGally':
##   method from   
##   +.gg   ggplot2
library(readr)
library(ggthemes)
library(psych)
## 
## Attaching package: 'psych'
## The following objects are masked from 'package:scales':
## 
##     alpha, rescale
## The following objects are masked from 'package:ggplot2':
## 
##     %+%, alpha
congress <- read.csv("congress_data.csv")

Setup

As always, read this section carefully, and when you’re ready to turn in the lab, you can delete the setup text and most of the instructions in the other sections. The goal is to create a clean, readable report that makes sense to someone who hasn’t seen the instructions.

This is Part 2 of our US Congress Lab. You may need to refer back to the previous lab guide for more information and context. You’ll be working with data that you filtered and wrangled in the last lab. You might choose a single team member’s data and code to work from.

As a group, you will need to turn in one copy of the html version of your RMarkdown Report. Please use code folding and remember to answer each question completely and accurately. The best teams work on projects together (side by side, pair programming), help teach those who are moving more slowly (not just “tell” the answer), and show up to planned group meetings on time and prepared with work done and ready to contribute to discussing the answers.

This means that everyone does the work—everyone should be contributing to code and/or following along on their own copies, helping to make decisions and interpret results, and checking in with each other to make sure each person actually understands what is going on. It means collaborating and making sure you have a plan for meeting after Lab, during the week, and everyone being patient and helping out.

Introduction

As a team, look over the questions below, and decide how to write an introduction that captures some of the general points of this report. You may need to repeat a little of what you wrote last time, but it shouldn’t be copied over verbatim.

The United States Congress is split into two chambers: the House of Representatives and the Senate. The House currently has 435 delegates, while the Senate has 100 (two for each state). The US Congress had their first session in 1789. Since the mid-19th century, Democrats and Republicans have emerged as the two dominant political parties. Congress has become increasingly polarized since the mid-20th century.

The objective of this lab is to discover patterns in the makeup of Congress over the course of its 116 iterations. The data consists of every member of Congress since 1789 as well as their political party, what session(s) of Congress they served, what state and distinct they represented, their birth and death dates, their political grade according to Nominate (negative is more left and positive is more right), their gender, and what their racial identity is.

Ethical Considerations

You’re working with the same datasets this week, so you may have some of the same ethical concerns as last time. As a team, read over each other’s Ethical Considerations sections from last week’s lab. Decide how to combine them into a new ethics statement for this week that captures all the concerns of the group.

Polarization in Congress has been present since the 20th century. While not always “liberal versus conservative,” that has been the dominant trend recently. By manipulating this data, we are able to help political analysts determine the trends of polarization throughout the entirety of Congress’s existence. We are also able to help sociologists and psychologists that want to analyze human behavior along lines of political affiliation . These data can also be used by schools in order to demonstrate the increasing polarization of Congress over time to students.

Statistical Analysis and Interpretation

Last week you did the Data Explanation and Exploration section of this lab. This week, you’ll go straight to Statistical Analysis and Interpretation. Really, this is one giant lab.

Conclusion

Write a short conclusion summarizing what you learned about this data from your work last week and next week. What conclusions might you draw about how Congress is polarized? What further research should be done?

Congress has grown increasingly polarized over time, and the Republican party has become polarized more rapidly than the Democratic party. Congress has diversified radically since its inception in 1789 when every Congressperson was a white male. There has been polarization at least along gender lines, with women both being more liberal on average and being less polarized as voters (in either party). Other than during the brief Reconstruction period, racial minorities have always been more liberal than whites in Congress. However, we haven’t looked at polarization along racial lines yet, which I think is worth looking into.

  1. Read these articles from Pew Research and Data Wrapper. How do they align with what you’ve investigated in this lab? Write a paragraph on what you learned and where you think political research in this area should look into next. In other words, what are the next questions you have for what might be related to changing diversity in congress and/or changing trends or polarization in voting?

https://www.pewresearch.org/fact-tank/2019/02/15/the-changing-face-of-congress/

https://blog.datawrapper.de/age-of-us-senators-charts/

As our data reflected, Congress is becoming increasingly diverse in terms of gender and racial dynamics. The article also noted that Congress has somewhat diversified religiously, which was not a variable we looked into, but seems natural as other indicators of diversity have gone up; I think that is promising for exploratory analysis. Apparently the current Senate is the oldest ever, counter to some data from 2019 we had that determined that Senate ages reached their peak in the 80s, so that is worth looking into as well.