Skip to content

Instantly share code, notes, and snippets.

@ryanburge
Created November 2, 2023 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburge/e85f90788665ad4447fbe0f3d500894b to your computer and use it in GitHub Desktop.
Save ryanburge/e85f90788665ad4447fbe0f3d500894b to your computer and use it in GitHub Desktop.
Coding Assignment 1 - Fall 2023
## Read your data in with this line:
gss <- read_csv("https://raw.githubusercontent.com/ryanburge/ct/master/gss_small.csv", guess_max = 25000)
## Codebook:
https://gssdataexplorer.norc.org/
## Maxwell Abillia
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?
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.
## George Akomea Ankrah
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?
3. Were white people more likely to own a gun than people of color in 1994?
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.
## Prince Brenya
1. What percentage of people supported the right to suicide for people with an incurable disease in 1978?
2. What percentage of men were white in 1998?
3. Were Democrats more likely to own a gun than Republicans in 2018?
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.
## Jasmin Chavolla
1. What percentage of people supported access to a legal abortion in the case that the woman was single in 2018?
2. How many black men had four year college degrees in 1980?
3. Were white people more likely to own a gun than people of color in 2018?
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.
## Millicent Danso
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. How many white women did not finish high school in the 2004 sample?
3. Were men more likely to own a gun than women in 2016?
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.
## Hannah Djabaku
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 2018?
3. Were white people more likely to own a gun than people of color in 2000?
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.
## Daniel Hooker
1. What percentage of people supported the right to suicide for people with an incurable disease in 2012?
2. How many black men had four year college degrees in 1988?
3. Were Democrats more likely to own a gun than Republicans in 1994?
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.
## Morgan Rigdon
1. What percentage of people supported access to a legal abortion in the case of several fetal defect in 2006?
2. How many white women did not finish high school in the 2018 sample?
3. Were men more likely to own a gun than women in 1980?
4. Create a data visualization of the educational attainment of the sample in 2008.
5. How has gun ownership rates changed for white vs people of color over time? Visualize your answer.
## Lois Tetteh
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. How many black men had four year college degrees in 2002?
3. Were Democrats more likely to own a gun than Republicans in 2018?
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.
## Thomas Wallace
1. What percentage of people supported the right to suicide for people with an incurable disease in 2004?
2. How many white women did not finish high school in the 1982 sample?
3. Were men more likely to own a gun than women in 1984?
4. Create a data visualization of the educational attainment of the sample in 2014.
5. How has the view of same sex relationships changed for white people vs people of color over time? Visualize your answer.
## Mckenna Wojcicki
1. What percentage of people lived in a trailer in 1988?
2. How many Black women owned a gun in 2002?
3. Were men more likely to say that having sexual relationships with someone other than their marriage partner was "not wrong at all" compared to women in 2016?
4. Create a data visualization of the partisanship distribution of the sample in 2000
5. How has the share of the population living in a detached single family home changed over time? Visualize your answer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment