EDA for vocabulary score vs. social class
Before we conduct inference, we should take a look at the distributions of vocabulary scores across the levels of (self identified) social class.
This exercise is part of the course
Inference for Numerical Data in R
Exercise instructions
- Using
gss
, plot the distribution of vocabulary scores,wordsum
. - Make this a histogram, using an appropriate binwidth.
- Facet this histogram, wrapping by social class level.
- Look at the plot! Compare the distributions of vocabulary scores across the levels of (self identified) social class.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Using gss, plot wordsum
ggplot(___, mapping = ___) +
# Add a histogram layer
___ +
# Facet by class
facet_wrap(___)