Hello stata community,

For my research, I'm working with IPUMS CPS data and would like to see how wage changes but need to control for minimum wage as state-level controls to make sure that hike in minimum wage across states is not biasing my result. Any idea how to do it? For income, age composition, and race composition I do it the following way but for minimum wage, I'm not sure how to do that. Do I need to collect the minimum wage for each state in different years over my whole sample, then need to do something? any help is appreciated.

*Income per capita
*9999999 = N/A
qui egen incpc = mean(inctot) if inctot!=9999999, by(statefip quarter)

*Racial composition
qui egen pblack = mean(black), by(statefip quarter)
qui egen phispanic = mean(hispanic), by(statefip quarter)

*Age composition
*age has no missings
qui gen young= (age>=18 & age<=35)
qui egen pyoung = mean(young), by(statefip quarter)