Learn R Programming

epidata (version 0.4.0)

get_black_white_wage_gap: Retreive the percent by which hourly wages of black workers are less than hourly wages of white workers

Description

The black-white wage gap is the percent by which hourly wages of black workers are less than hourly wages of white workers. It is also often expressed as a wage ratio (black workers' share of white workers' wages) by subtracting the gap from 100 percent.

Usage

get_black_white_wage_gap(by = NULL)

Arguments

by

NULL or g for a parition by gender

Value

tbl_df with data filtered by the selected criteria.

Details

  • A median black-white wage gap of 26.2 percent means that a typical black worker is paid 26.2 percent less per hour than a typical white worker.

  • An average black-white wage gap of 26.6 percent means that on average black workers are paid 26.6 percent less per hour than white workers.

  • A regression-based black-white wage gap of 15.2 percent means that on average black workers are paid 15.2 percent less per hour than white workers, all else held equal (controlling for gender, race and ethnicity, education, experience, and geographic location).

References

Economic Policy Institute Data Library

Examples

Run this code
# NOT RUN {
if (not_dos()) get_black_white_wage_gap()

if (not_dos()) get_black_white_wage_gap("g")
# }

Run the code above in your browser using DataLab