Rising in the US?
Will this situation be the same in the United States?
Let's perform the same analysis for the US.
This exercise is part of the course
Data Analysis and Statistical Inference
Exercise instructions
- Take a subset
us
ofatheism
with only the respondents from the US ("United States"
). - Calculate the proportion of atheists within this subset.
- Use the
inference()
function on this subset, grouping them by year.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# The atheism data frame and inference() function are already loaded into the workspace.
# Take the us subset:
us <-
# Calculate the proportion of atheists from the us subset:
proportion <-
# Use the inference() function: