------------------------------------------------------------------------------------------------------------
      name:  zdiag
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/T
> ienes IMSS/Update26/ThemeF/ThemeF_zona_diagnostic.txt
  log type:  text
 opened on:   3 Aug 2026, 17:17:23

. 
. use state mun zona salario per cohort using "$update23/panel_16_22.dta", clear

. gen year = mod(per,100)+2000

. 
. di as txt _n "Wage zone codes by year:"

Wage zone codes by year:

. tab zona year if inrange(year,2016,2019), missing

      Zona |                    year
  salarial |      2016       2017       2018       2019 |     Total
-----------+--------------------------------------------+----------
  Zona "A" |   387,790    380,619    372,677     33,405 | 1,174,491 
    Zona B |         0          0          0    344,758 |   344,758 
-----------+--------------------------------------------+----------
     Total |   387,790    380,619    372,677    378,163 | 1,519,249 

. 
. di as txt _n "Minimum wage levels by zone and year (should show the 2019 split):"

Minimum wage levels by zone and year (should show the 2019 split):

. table zona year if inrange(year,2016,2019), statistic(mean salario) nformat(%9.2f)

----------------------------------------------------------------
              |                        year                     
              |     2016      2017      2018      2019     Total
--------------+-------------------------------------------------
Zona salarial |                                                 
  Zona "A"    |  2191.00   2420.51   2651.00   5302.00   2499.82
  Zona B      |                                3080.00   3080.00
  Total       |  2191.00   2420.51   2651.00   3276.28   2631.48
----------------------------------------------------------------

. 
. di as txt _n "For 2019, states appearing in each wage zone:"

For 2019, states appearing in each wage zone:

. levelsof zona if year==2019, local(zz)
1 2

. foreach z of local zz {
  2.     qui levelsof state if year==2019 & zona==`z', local(ss)
  3.     di as txt "  zona `z': `ss'"
  4. }
  zona 1: 2 5 8 19 26 28
  zona 2: 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

. 
. di as res _n "READING GUIDE:"

READING GUIDE:

. di as res "  If 2019 shows two distinct zones with different mean salario, and"
  If 2019 shows two distinct zones with different mean salario, and

. di as res "  the high-wage zone contains only the six border states, then zona"
  the high-wage zone contains only the six border states, then zona

. di as res "  identifies the ZLFN and a municipality-accurate check is feasible."
  identifies the ZLFN and a municipality-accurate check is feasible.

. di as res "  If zona is constant from 2016, it does not and the state-level"
  If zona is constant from 2016, it does not and the state-level

. di as res "  checks below are the best available."
  checks below are the best available.

. 
. log close zdiag
      name:  zdiag
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/T
> ienes IMSS/Update26/ThemeF/ThemeF_zona_diagnostic.txt
  log type:  text
 closed on:   3 Aug 2026, 17:17:30
------------------------------------------------------------------------------------------------------------
