Skip to content

Instantly share code, notes, and snippets.

@ryanburge
Last active March 26, 2019 14:16
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/9693adeff9dda8be2e8fb13feb608a9d to your computer and use it in GitHub Desktop.
Save ryanburge/9693adeff9dda8be2e8fb13feb608a9d to your computer and use it in GitHub Desktop.
PLS 2033 3/26/19.R
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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment