diff --git a/README.md b/README.md index 8578b5a..4f83baa 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ datasets of historical state and sub-state minimum wages. ## Latest data Do you just want the data? Go [here](https://github.com/benzipperer/historicalminwage/releases/latest) -for the latest release containing data through December 31, 2021. +for the latest release containing data through December 31, 2022. The data is available as Excel .xlsx spreadsheets or Stata .dta files, along with .pdf files of the sources for all of the historical changes. diff --git a/code/state_mw.do b/code/state_mw.do index 61f3c51..374e408 100644 --- a/code/state_mw.do +++ b/code/state_mw.do @@ -17,7 +17,7 @@ local states StateMinimumWage_Changes * these dates should reflect complete sample of data local begindate 01may1974 -local finaldate 31dec2021 +local finaldate 31dec2022 *IMPORTING A CROSSWALK FOR FIPS CODES, STATE NAMES, AND STATE ABBREVIATIONS *Importing and "loading in" the crosswalk @@ -94,6 +94,7 @@ save `fedmw' *PREPARING THE STATE MINIMUM WAGE CHANGES FILE *Loading in the State by State minimum wage data import excel using ${raw}`states'.xlsx, clear firstrow +keep statefips statename year month day mw* source* *Creating a daily date variable gen date = mdy(month,day,year) @@ -103,7 +104,7 @@ replace mw = round(mw, .01) replace mw_healthinsurance = round(mw_healthinsurance, .01) replace mw_smallbusiness = round(mw_smallbusiness, .01) -merge m:1 statefips using `crosswalk', nogen assert(3) +merge m:1 statefips using `crosswalk', nogen assert(3) order statefips statename stateabb year month day date mw* source source_2 source_notes label var statefips "State FIPS Code" @@ -162,7 +163,7 @@ compress save ${exports}mw_state_daily.dta, replace *Exporting to excel spreadsheet format -export excel using ${exports}mw_state_daily.xlsx, replace firstrow(varlabels) datestring(%td) +*export excel using ${exports}mw_state_daily.xlsx, replace firstrow(varlabels) datestring(%td) *EXPORTING A MONTHLY DATASET WITH STATE MINIMUM WAGES, FEDERAL MININUMUM WAGES, and FINAL MINIMUM WAGE (based on the higher level between the state and federal minimum wages) use `data', clear @@ -188,7 +189,7 @@ label var max_mw "Monthly State Maximum" *Exporting to Stata .dta file sort stateabb monthly_date compress -save ${exports}mw_state_monthly.dta, replace +save ${exports}mw_state_monthly.dta, replace *Exporting to excel spreadsheet format export excel using ${exports}mw_state_monthly.xlsx, replace firstrow(varlabels) datestring(%tm) @@ -264,10 +265,9 @@ rm mw_state_changes.dta * state - Excel !cp ${exports}mw_state*.xlsx . -zipfile mw_state_annual.xlsx mw_state_quarterly.xlsx mw_state_monthly.xlsx mw_state_daily.xlsx mw_state_changes.xlsx, saving(mw_state_excel.zip, replace) +zipfile mw_state_annual.xlsx mw_state_quarterly.xlsx mw_state_monthly.xlsx mw_state_changes.xlsx, saving(mw_state_excel.zip, replace) !mv mw_state_excel.zip ${release} rm mw_state_annual.xlsx rm mw_state_quarterly.xlsx rm mw_state_monthly.xlsx -rm mw_state_daily.xlsx rm mw_state_changes.xlsx diff --git a/code/substate_mw.do b/code/substate_mw.do index 5ce8328..31d88ec 100644 --- a/code/substate_mw.do +++ b/code/substate_mw.do @@ -14,7 +14,7 @@ global exports ${home}exports/ global release ${home}release/ local substate "SubstateMinimumWage_Changes" -local finaldate 31dec2021 +local finaldate 31dec2022 *IMPORTING A CROSSWALK FOR FIPS CODES, STATE NAMES, AND STATE ABBREVIATIONS @@ -54,6 +54,7 @@ label var stateabb "State Abbreviation" label var locality "City/County" label var mw "Minimum Wage" order statefips statename stateabb locality year month day date mw mw_* source source_2 source_notes +keep statefips statename stateabb locality year month day date mw mw_* source source_2 source_notes *Exporting to Stata .dta file sort locality date diff --git a/rawdata/FederalMinimumWage_Changes.xlsx b/rawdata/FederalMinimumWage_Changes.xlsx index 1c5c15f..b19f935 100644 Binary files a/rawdata/FederalMinimumWage_Changes.xlsx and b/rawdata/FederalMinimumWage_Changes.xlsx differ diff --git a/rawdata/StateMinimumWage_Changes.xlsx b/rawdata/StateMinimumWage_Changes.xlsx index 233444c..316336a 100644 Binary files a/rawdata/StateMinimumWage_Changes.xlsx and b/rawdata/StateMinimumWage_Changes.xlsx differ diff --git a/rawdata/SubstateMinimumWage_Changes.xlsx b/rawdata/SubstateMinimumWage_Changes.xlsx index 153111a..f8b6351 100644 Binary files a/rawdata/SubstateMinimumWage_Changes.xlsx and b/rawdata/SubstateMinimumWage_Changes.xlsx differ