library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.2.1 ✔ readr 2.2.0
## ✔ forcats 1.0.1 ✔ stringr 1.6.0
## ✔ ggplot2 4.0.4 ✔ tibble 3.3.1
## ✔ lubridate 1.9.5 ✔ tidyr 1.3.2
## ✔ purrr 1.2.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(rsconnect)
library(readxl)
springtide <- read_xlsx("Springtide Survey of Young People and Civic Life, 2024 (2).xlsx")
## Warning: Expecting logical in KS3417 / R3417C305: got 'Associates degree'
## Warning: Expecting logical in KS3604 / R3604C305: got 'GED'
## Warning: Expecting logical in KS3708 / R3708C305: got 'Graduated high school'
## Warning: Expecting logical in KS3730 / R3730C305: got 'Trade school'
## Warning: Expecting logical in KS3824 / R3824C305: got 'I graduated high school
## and thinking of going to college'
## Warning: Expecting logical in KS4219 / R4219C305: got 'Trade graduate'
## Warning: Expecting logical in KS4389 / R4389C305: got 'High school graduate'
## Warning: Expecting logical in KS4555 / R4555C305: got 'Vocational degree'
## Warning: Expecting logical in KS4590 / R4590C305: got 'Bachelors degree'
## Warning: Expecting logical in KS4886 / R4886C305: got 'I have completed all
## schools 100%'
## Warning: Expecting logical in KS5126 / R5126C305: got 'Homeschooled'
## Warning: Expecting logical in KS5455 / R5455C305: got 'Some high school
## knowledge'
## Warning: Expecting logical in KS5512 / R5512C305: got 'Ged'
## Warning: Expecting logical in KS5561 / R5561C305: got 'I didn\'t graduate'
## Warning: Expecting logical in KS5899 / R5899C305: got 'Trade School'
## Warning: Expecting logical in KS5934 / R5934C305: got 'High School Graduate'
## Warning: Expecting logical in KS6373 / R6373C305: got 'GED'
## Warning: Expecting logical in KS6498 / R6498C305: got 'Trade School
## Certification'
## Warning: Expecting logical in KS6552 / R6552C305: got 'High school &trade
## school'
Our goal is to understand the connection between religion and social media in younger generations. Generation-Z is one of the first generations to have social media play a large role in their life. How do different religions’ values differ and how does this impact their social media usages? What can we infer about each religion based on the social media usage and their priorities in terms of values? We decided to focus on the five popular religions in the data set: Christian, Atheist, Jewish, Muslim, and Spiritual but Religious. They are not the five most appearing, however they give us insight into five different types of religious affiliation.
Historically churches of all kinds have pushed back from “wordly” things such as social media. While social media can be used for self promotion and negative things, it also has become a positive outlet for business and churches throughout the years. Since all five religions we are covering differ in beliefs and value systems, we hope to see some trends in each religion to understand their actual habits in relation to social media. Are these religions pushing away from social media for certain reasons? Is there a relationship between their beliefs and their perception of new technology like social media?
All of these are questions we hope to answer using our data from the “Springtide Survey of Young People and Civic Life”. This survey was published in 2024 and covers a wide variety of information, but for our purposes we will be zoning in on the variables related to values, social media usage, religious affiliation, and reasoning for using social media. The data was collected online through a survey sent out throughout the United States. It had 6,669 participants between the ages of 13-25, and it was administered in the early months of 2024.
Graph 1:
springtide|>
filter(R_RELAFFIL == "6"| R_RELAFFIL == "2"| R_RELAFFIL == "5"| R_RELAFFIL == "9"|R_RELAFFIL == "14")|>
select(ID, R_RELAFFIL)|>
group_by(R_RELAFFIL)|>
mutate(R_RELAFFIL = case_match(
R_RELAFFIL,
2 ~ "Atheist",
5 ~ "Jewish",
6 ~ "Just Christian",
9 ~ "Muslim",
14 ~ "Spiritual But Not
Religious"))|>
ggplot(aes(x = R_RELAFFIL, fill = R_RELAFFIL)) +
geom_bar() +
labs(x = "Religious Affiliation", y = "Number of People", fill = "Religious Affiliation", title = "Distribution of Participants by Religious Group", caption = "Data Source: Springtide Survey of Young People and Civic Life (2024)")
## Warning: There was 1 warning in `mutate()`.
## ℹ In argument: `R_RELAFFIL = case_match(...)`.
## ℹ In group 1: `R_RELAFFIL = 2`.
## Caused by warning:
## ! `case_match()` was deprecated in dplyr 1.2.0.
## ℹ Please use `recode_values()` instead.
# Alt Text: The bar graph shows the number of participants that make up each of 5 selected religions. The religious affiliations include Athiest, Jewish, Christian, Muslim, Spiritual but not Religious. The number of people per group ranges from 0 to 1700 participants. Just Christian is the largest religious affiliation around 1700 participants. Atheist and Spiritual but not Religious are the next largest around 400 participants each. Jewish and Muslim are the smallest affiliations with less than 250 participants each.
Of the participants in this study, the majority were affiliated with just the Christian religion. Some participants reported themselves as Atheist or Spiritual But Not Religious and only a few were affiliated with Jewish and Muslim religions.
Graph 2:
Graph 3:Claire
springtide |> select(-R_SOCIALREASON_IDENTITY) |>
filter(if_any(R_SOCIALREASON_IMPORTANT:R_SOCIALREASON_NEWS, ~ .x != 3)) |>
mutate(social_positivity_score =
rowSums(across(R_SOCIALREASON_IMPORTANT:R_SOCIALREASON_NEWS), na.rm = TRUE)) |>
mutate(social_positivity_score = social_positivity_score/16) |>
filter(R_RELAFFIL %in% c("6","2","5","9","14"))|>
mutate(R_RELAFFIL = recode(R_RELAFFIL,"6" = "Christian", "2"= "Atheist", "5" = "Jewish", "9" = "Muslim", "14" = "Spiritual Not Religious")) |>
ggplot(aes(x = social_positivity_score, fill = R_RELAFFIL)) +
geom_boxplot(alpha = 1.0) +
labs(title = "Social Media Connotation by Religious Affiliation in Young Adults", x = "Social Media Connotation", y = "Density", fill = "Religious Affiliation", caption = "Larger proportion associated with more positive views on social media")
Graph 4: Erin
springtide|>
filter(R_RELAFFIL == "6"| R_RELAFFIL == "2"| R_RELAFFIL == "5"| R_RELAFFIL == "9"|R_RELAFFIL == "14")|> #Only keeping main 5 religions
select(ID, R_AGE, R_SOCIALUSE, R_RELAFFIL)|>
mutate(R_RELAFFIL = case_match(
R_RELAFFIL,
2 ~ "Atheist",
5 ~ "Jewish",
6 ~ "Just Christian",
9 ~ "Muslim",
14 ~ "Spiritual But Not
Religious"))|>
ggplot(aes(x = R_AGE, fill = R_RELAFFIL, color = R_RELAFFIL)) +
geom_density(alpha = 0.2) +
facet_wrap( ~ R_SOCIALUSE) +
labs(x = "Age in Years", y = "Density", fill = "Religious Affiliation", color = "Religious Affiliation", title = "Distribution of Hours Using Social Media for Different Religions as People Age", caption = "Data Source: Springtide Survey of Young People and Civic Life (2024)")
# Alt Text: The variation in social media use is shown in density plots separated by the hours a participant reported using social media. The age (x-axis) of participants ranges from 13 years old to 25 years old, with the average age of the study being 18.6 years old. The density is grouped by religious affiliation, including Athiest, Jewish, Just Christian, Muslim, and Spiritual But Not Religious. The plots are faceted by hours of social media use ranging from 1 hour to 5 hours. Those who reproted only using social media for 1 hour varied the most in religious affiliation. Those who reported 4 or 5 hours varied the 2nd most in religious affiliation. Those who reported 2 or 3 hours were roughly evenly spread across affiliations. Overall, the graphs show that in general the religious affiliations and ages vary evenly between participants who spent between 2-3 hours using social media, but varies more in both age and religious affiliation when using social media for 1 hour or 4 to 5 hours.
Participants who use social media for 2 and 3 hours have even variation between age and religious affiliation. Participants who use social media for 1 hour, vary greatly in religious affiliation and skew slightly toward younger ages. Participants who use social media for 4 and 5 hours vary slightly by religious affiliation but are evenly distributed across ages.
Graph 5: Annika
springtide|>
filter(R_RELAFFIL %in% c("6","2","5","9","14"))|>
mutate(R_RELAFFIL= recode(R_RELAFFIL,"6" = "Christian", "2"= "Atheist", "5" = "Jewish", "9" = "Muslim", "14" = "Spiritual Not Religious"))|>
select(FLOURISH_PURPOSE, FLOURISH_SOCIAL, FLOURISH_FUTURE, R_RELAFFIL)|>
pivot_longer(cols = c(FLOURISH_PURPOSE,FLOURISH_SOCIAL,FLOURISH_FUTURE), names_to = "Question", values_to = "Response")|>
filter(!is.na(Response))|> #removed the na values so they are not accounted for
mutate(Response = factor(Response, levels = c(1,2,3,4,5), labels = c("Strongly disagree", "Disagree", "Neither agree nor disagree", "Agree", "Strongly agree")), Question = recode(Question, "FLOURISH_PURPOSE"= "Purpose", "FLOURISH_SOCIAL"= "Social", "FLOURISH_FUTURE"= "Future"))|>
ggplot(aes(x=Question, fill = Response))+
geom_bar(position = "fill")+
facet_wrap(~R_RELAFFIL) + labs(fill = "Survey Response", title ="Trends in Survey Questions By Religion", subtitle = "PURPOSE: I lead a purposeful and meaningful life, SOCIAL:My social relationships are supportive and
rewarding, FUTURE: I am optimistic about my future") +theme_grey()
#Alt Text: The bar graph shows the difference between three survey questions asked in the "Springtide Survey of Young People" and the difference is survey response by religion. The graph is facet wrapped by religion, and then each questions is represented on the x-axis and the survey responses are shown in proportions.The three questions asked were labeled as Purpose, Social, and Future and are described by these questions: PURPOSE: I lead a purposeful and meaningful life, SOCIAL:My social relationships are supportive and rewarding, FUTURE: I am optimistic about my future. Overall, we can see that the christian and Jewish respondents in this survey have lower proportions of strongly disagree and disagree on all three questions. In addition, Atheist and spiritual but not religious participants had the lowest proportion of strongly agree on all of the questions.
There is definitely a connection between religion and the survey responses to these three questions. One key trend in the data is that Christian and Jewish respondents had low proportions of strongly disagree and disagree to all three questions. Since the questions ask about flourishing, we can likely conclude that these two religions maybe feel more fulfilled based on the set of questions. Furthermore, we see the lowest levels of strongly agree for atheist and spiritual but not religious. This shows the other side of the spectrum and helps us again make a conclusion about the connection between the two. Based on these two graphs, we think it is logical to assume that flourishing and fulfillment do have a connection to religion, and it is strengthened when they believe in a god or an entity.
The people who identified as Christian or Jewish were the least likely to fall into the disagree or strongly disagree categrory for all three questions.
#JUST TO SEE WHAT THE RESPONSE IS SHOWING UP AS
springtide|>
filter(R_RELAFFIL %in% c("6","2","5","9","14"))|>
mutate(R_RELAFFIL= recode(R_RELAFFIL,"6" = "Christian", "2"= "Atheist", "5" = "Jewish", "9" = "Muslim", "14" = "Spiritual Not Religious"))|>
select(FLOURISH_PURPOSE, FLOURISH_SOCIAL, FLOURISH_FUTURE, R_RELAFFIL)|>
pivot_longer(cols = c(FLOURISH_PURPOSE,FLOURISH_SOCIAL,FLOURISH_FUTURE), names_to = "Question", values_to = "Response")|>
count(Question, Response)