Skip to content

Instantly share code, notes, and snippets.

@ryanburge
Last active November 9, 2022 23:30
Show Gist options
  • Save ryanburge/b690a8b9a6f19b94a06231bf1f4e871d to your computer and use it in GitHub Desktop.
Save ryanburge/b690a8b9a6f19b94a06231bf1f4e871d to your computer and use it in GitHub Desktop.
Coding Assignment #1 - Fall 2022 Graduate Methods
## 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/
## Fu Ad Wumpaeh Alhassan
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.
## Diwas Amatya
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.
## Victoria Dingman
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.
geom_labelsmooth(aes(label = pid3), method = "loess", formula = y ~ x, linewidth = 1, text_smoothing = 30, size = 4, linewidth = 1, boxlinewidth = 0.3) +
geom_text(aes(y = pct +.02, label = paste0(pct*100, '%')), position = position_dodge(width = .9), size = 5)
## Swarup Dipto
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.
## Taher Garamanli
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.
## Clay Johnson
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.
## Leon McGee
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.
## Kingsford Onyina
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.
## Jay Richter
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.
## Nathan Vemmer
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment