knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(infer)
library(tidyr)

Problem One:

Conduct a hypothesis test to determine if a majority of a randomly chosen congress is Republican. Calculate the confidence interval as well. You'll need to recode your data similar to the example in the lesson.

#INSERT YOUR CODE HERE

Conclusion to hypothesis test:

Problem Two:

Determine if there is a difference in money received from pro lobby groups and con lobby groups (test and interval). You'll need to clean the data by replacing missing values with 0 and filtering to a single political party of your choice.

#INSERT YOUR CODE HERE

Conclusion to hypothesis test:



npaterno/stat231 documentation built on May 1, 2023, 6:07 p.m.