Last active
February 25, 2026 13:02
-
-
Save ryanburge/49b65768611985328177312e15ea3551 to your computer and use it in GitHub Desktop.
Assignment 1 - Spring 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## The data to download is here: | |
| https://wustl.box.com/s/tjtbtl5zs0o1xawydr1h24dzgbzxmunj | |
| # Load the package | |
| library(fst) | |
| # Load the data (change the path to where you saved the file) | |
| gss <- read_fst("PATH TO YOUR DATA") | |
| ## Some packages you will need | |
| library(socsci) | |
| library(tidyverse) | |
| library(scales) | |
| ## Codebooks: | |
| https://gssdataexplorer.norc.org/ | |
| https://thearda.com/data-archive?fid=GSS2024 | |
| ## Yoana Zamora Miranda | |
| 1. What percentage of people supported access to a legal abortion in the case of rape in 1994? | |
| 2. How many white women did not finish high school in the 1972 sample? | |
| 3. Were men more likely to own a gun than women in 1994? In 2024? Visualize each year. | |
| 4. Create a data visualization of the educational attainment of the sample in 1972. | |
| 5. How has support for abortion in the case of rape changed for those with a college degree compared to those with a high school diploma or less since 1972? Visualize your answer. | |
| ## Amelia Mogul | |
| 1. What percentage of people thought we were spending too much on dealing with drug addiction in 1973? (Hint: drugusage == natdrug in the GSS Codebook) | |
| 2. How many black men had four year college degrees in 1998? In 2024? Visualize that. | |
| 3. Visualize gun ownership rates among white and non-white samples throughout the GSS. | |
| 4. Create a data visualization of the partisan distribution of the sample in 1972. | |
| 5. How has support for abortion in the case of poverty changed for those with a college degree compared to those with a high school diploma or less since 1972? Visualize your answer. | |
| ## Molly James | |
| 1. What percentage of people supported the right to suicide for people with an incurable disease in 1978? | |
| 2. Visualize the attendance level of men in 1994 compared to 2024. | |
| 3. Were Democrats more likely to believe the Bible is literally true in 1998 compared to Republicans? What about 2024? Visualize. | |
| 4. Create a data visualization of the partisan distribution of the sample in 2008. | |
| 5. How has gun ownership rates changed for Democrats and Republicans over time? Visualize your answer. | |
| ## Valentina Zapata | |
| 1. What percentage of people supported access to a legal abortion in the case that the woman was single in 2018? | |
| 2. Visualize the educational attainment of black men in the sample by decade of the survey. | |
| 3. Are men more likely to be Protestants or Catholics? How has that changed over time? Visualize it. | |
| 4. Create a data visualization of the educational attainment of the sample in 1992. | |
| 5. How has the view of same sex relationships changed for women vs men over time? Visualize your answer. | |
| ## Tim Mellman | |
| 1. What percentage of people thought we were spending that right amount on dealing with drug addiction in 1982? (Hint: drugusage == natdrug in the GSS Codebook) | |
| 2. Visualize the share of the sample who did not earn a high school diploma over time in the GSS sample. | |
| 3. Are men more likely to support abortion for any reason compared to women? Has that changed over time? Visualize it. | |
| 4. Create a data visualization of the partisan distribution of the sample in 1984. | |
| 5. How has the view of same sex relationships changed for Democrats vs Republicans over time? Visualize your answer. | |
| ## Josef Westberg | |
| 1. What percentage of people supported access to a legal abortion in the case that the woman was single in 2016? | |
| 2. What percentage of men were white in the GSS over time? Visualize it. | |
| 3. Are Protestants more likely to support suicide in the case of incurable disease than Catholics? Has this changed over time? Visualize. | |
| 4. Create a data visualization of the educational attainment of the sample in 2004. | |
| 5. How has gun ownership rates changed for men versus women over time? Visualize your answer. | |
| ## Lewis Rand | |
| 1. What percentage of people supported the right to suicide for people with an incurable disease in 2012? | |
| 2. Among Black men, how has church attendance rates changed over time? Visualize. | |
| 3. How do Democrats think about abortion in the case of a severe birth defect? Has their suport changed over time? Visualize it. | |
| 4. Create a data visualization of the partisan distribution of the sample in 2004. | |
| 5. How has support for abortion for any reason changed for those with a college degree compared to those with a high school diploma or less since 1972? Visualize your answer. | |
| ## Sara Strassberg | |
| 1. What percentage of people supported access to a legal abortion in the case of several fetal defect in 2006? | |
| 2. Visualize the share of the sample with a high school diploma or less over time. | |
| 3. Are men more likely to go to church than women? Visualize this trend since 1972. | |
| 4. Create a data visualization of the educational attainment of the sample in 2008. | |
| 5. Create a stacked and flipped bar chart of each generation when it comes to religious affilaition in 2024. | |
| ## Annabelle Seeley | |
| 1. What percentage of people thought we were spending too little on dealing with drug addiction in 1988? (Hint: drugusage == natdrug in the GSS Codebook) | |
| 2. Among those who never attend church - how has their educatoinal attainment changed over time? | |
| 3. Are Democrats more likely to permit extramarital sex compared to Republicans? Visualize that trend. | |
| 4. Create a data visualization of the partisan distribution of the sample in 2016. | |
| 5. How has support for abortion in the case of the mothers health changed for those with a college degree compared to those with a high school diploma or less since 1972? Visualize your answer. | |
| ## Sara Steinmetz | |
| 1. What percentage of white people never attended religious services in 1972? | |
| 2. What share of weekly attenders have earned a four year college degree? How has that changed over time? Visualize. | |
| 3. Visualize the distribution of partisanship among white people vs non-white people in 2008. | |
| 4. How has the racial composition of the Catholic sample changed over time? Visualize that. | |
| 5. What about access to abortion in the case of rape? How have the parties changed their views on this over time? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment