Skip to content

Commit

Permalink
Merge pull request #5 from benzipperer/2022
Browse files Browse the repository at this point in the history
2022
  • Loading branch information
benzipperer authored Nov 11, 2022
2 parents b7c182d + dcb153f commit 8c4fc35
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions code/state_mw.do
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
3 changes: 2 additions & 1 deletion code/substate_mw.do
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Binary file modified rawdata/FederalMinimumWage_Changes.xlsx
Binary file not shown.
Binary file modified rawdata/StateMinimumWage_Changes.xlsx
Binary file not shown.
Binary file modified rawdata/SubstateMinimumWage_Changes.xlsx
Binary file not shown.

0 comments on commit 8c4fc35

Please sign in to comment.