Group Exercise: Confidence Interval

# ANES2012<-read.csv("http://www.courseserve.info/files/ANES2012r.csv")
# ANES2016<-read.csv("http://www.shortell.nyc/online/files/anes_timeseries_2016.csv")

In 2012, the mean favorability toward the Democratic Party was 54.9 degrees. We can use this to formulate a hypothesis about favorability toward the Democrats in 2016.

H0: muDems = 54.9
H1: muDems =/= 54.9

We compute the test in R:
t.test(V161095, mu=54.9) # The value for mu comes from our hypotheses

We can interpret the results in terms of how favorability toward Democrats changed in the intervening four years.

Group Exercise
Select a variable from ANES 2016 and compute the confidence interval. Interpret the results. Paste your R code in your comment.