This repository produces the data for the EPI Productivity-Pay Gap page, which also explains the methodology and provides a link to download the data.
You can download the data at
- The EPI Productivity-Pay Gap page
- State of Working America Data Library
- The latest release files from this repository
The productivity-pay gap data is also available on the State of Working America Data Library.
Below are instructions to reproduce the data
You will need R and all of the packages in packages.R
- Some package versions must match the versions specified in
_targets.R - In particular you should use the latest price indices in the
realtalkpackage.
BLS_DOWNLOAD_EMAILemail valid for BLS downloads- BLS and BEA API keys set, respectively, in
BLS_API_KEYandBEA_API_KEY.
-
Set the
api_download_datevariable to the current date. -
tar_make(): will produce all of the data in 4 .csv filesepi_productivity_pay_gap.csv: all series, long formatepi_productivity_pay_gap_web.csv: web ready, pay and productivity series indexed to 1948q1epi_productivity_pay_gap_sources.csv: summary of input data sourcesepi_productivity_pay_gap_web_stats.csv: relevant statistics for website
bea_api_output.csv: API results from BEAbls_api_output.csv: API results from BLSbls_hours.csv: CSV version of BLS total economy hoursbls_pay.csv: combined BLS early and later wage seriesprices.csv: price indices
epi_productivity_pay_gap.csv: all annual and quarterly data in long formatepi_productivity_pay_gap_web.csv: EPI Productivity-Pay Gap web page ready data in wide format, rounded to one decimal placeepi_productivity_pay_gap_web_stats.csv: miscellanous stats based on web-ready dataepi_productivity_pay_gap_sources.csv: description of the underlying data sources
- Total hours (BLS)
- Net domestic product (Bureau of Economic Analysis, NIPA table 1.7.5, via BEA API)
- Average hourly wages for production/nonsupervisory workers (Bureau of Labor Statistics, Current Employment Statistics, series CES0500000008, CES0500000008, via BLS API)
- Average hourly wages for production workers (Bureau of Labor Statistics Current Employment Statistics, series EEU00500006, via BLS API)
- Total compensation (Bureau of Economic Analysis, NIPA table 2.1, line 2, via BEA API)
- Wages (Bureau of Economic Analysis, NIPA table 2.1, line 3, via BEA API)