Skip to content

Instantly share code, notes, and snippets.

@ryanburge
Created April 2, 2019 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburge/a93b502c8160cd8eb0a8021d4b1d4cc2 to your computer and use it in GitHub Desktop.
Save ryanburge/a93b502c8160cd8eb0a8021d4b1d4cc2 to your computer and use it in GitHub Desktop.
Assignment 2 - Research Methods
library(socsci)
library(car)
cces <- read_csv("https://raw.githubusercontent.com/ryanburge/cces/master/CCES%20for%20Methods/small_cces.csv")
## Here's a link to download the codebook
https://github.com/ryanburge/cces/raw/master/Codebooks/CCES_2016_Small_Codebook.pdf
## We are going to talk about two things today
1. The group_by() function
2. Confidence Intervals
### Open this page up:
http://rpubs.com/ryanburge/intermediate_R
+ geom_errorbarh(aes(xmin = lower, xmax=upper))
Assignment 2 Questions:
1. What State Has the Highest Concentration of Jewish People?
2. What Religious Group Has the Highest Share of Those Under 35 Who Identify As Democrats?
3. You are given the task of trying to convince some Republicans to support gun control. What specific part of gun control do you pick?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment