There is two region dummy variables mi (mi takes the value 1 if Michigan and 0 otherwise) and 32 months in my panel dataset. To compare the coefficients in front of all month dummies in Michigan and other states, I write down the following codes:

gen nonmi = 1 if mi==0
replace nonmi = 0 if mi==1
forvalues i = 1/32 {
gen dmimonth`i' = mi*month if month == `i'
gen dnonmimonth`i' = nonmi*month if month == `i'
}

Then when I summarize dmimonth* dnonmimonth*, there are no such variables generated. Would you mind helping me out? Many thanks! The dataset looks like the following:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(state month) float(smoke_rate2 mi) byte(hispanic married mrace3)
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 2
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 1 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 1 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 1 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 3
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 3
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 0 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
19 1 .16875 0 0 1 1
end