Get startedGet started for free

Hourly pay vs. citizenship status

Using the acs12 data, and specifically the variables income, hrs_work, and citizen, summarize, visualize, and compare the distributions of hourly pay rate for citizens and non-citizens.

This exercise is part of the course

Inference for Numerical Data in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Filter for non-missing hrly_pay and non-missing citizen
acs12_complete_hrlypay_citizen <- acs12 %>%
  ___
Edit and Run Code