1. Learn
  2. /
  3. Courses
  4. /
  5. Inference for Numerical Data in R

Connected

Exercise

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.

Instructions 1/4

undefined XP
    1
    2
    3
    4

Filter acs12 for rows where hourly pay, hrly_pay, and U.S. citizenship status, citizen, are both non-missing.