--------------------------------------------------------------------------------------------------------------
      name:  gres
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tie
> nes IMSS/replication/output/ThemeG/ThemeG_results.txt
  log type:  text
 opened on:  20 Aug 2026, 14:48:08

. 
. 
. ********************************************************************************
. * SECTION 1: ENILEMS CELLS
. ********************************************************************************
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 1: ENILEMS cell construction"
SECTION 1: ENILEMS cell construction

. di as res "{hline 78}"
------------------------------------------------------------------------------

. 
. use "$update23/enilems_16", clear

. rename facpobenoe fac_pob

. append using "$update23/enilems_19"

. 
. gen valid=(r_def==0 & r_def_eni==0 & t_ent==1 & (c_res==1 | c_res==3) ///
>     & inrange(eda,18,20))

. keep if valid
(129,533 observations deleted)

. 
. gen informal=0 if clase2==1
(8,303 missing values generated)

.     replace informal=1 if tue2==5
(1,734 real changes made)

.     replace informal=1 if pos_ocu==3 & rama==6
(14 real changes made)

.     replace informal=1 if pos_ocu==4
(440 real changes made)

.     replace informal=1 if inrange(seg_soc,2,3) & tue2==6
(151 real changes made)

.     replace informal=1 if pos_ocu==1 & remune2c==1 & (tue2!=5 | tue2!=6 | tue2!=7) & inrange(seg_soc,2,3)
(1,953 real changes made)

.     replace informal=1 if pos_ocu==1 & remune2c==2 & (tue2!=5 | tue2!=6 | tue2!=7) & inrange(seg_soc,2,3)
(132 real changes made)

.     replace informal=1 if pos_ocu==5 & inrange(seg_soc,2,3)
(0 real changes made)

. gen formal=1-informal
(8,303 missing values generated)

. 
. rename ent state

. merge m:1 state using "$update23/inf_pre"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                            14,990  (_merge==3)
    -----------------------------------------

.     drop _merge

. merge m:1 state wave using "$update23/state_gdp_1619"
(variable state was byte, now float to accommodate using data's values)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                            14,990  (_merge==3)
    -----------------------------------------

.     drop _merge

. 
. gen public        = (t_sos==1)

. gen job_hs        = inrange(a_p45_1,1,2)

. gen enroll_hs     = (c_ins==1)

. gen highed_parent = (nivel_p==5 | nivel_m==5)

. gen lgdp          = ln(gdp)

. 
. gen inpc=.
(14,990 missing values generated)

.     replace inpc=90.12792483  if wave==16
(7,191 real changes made)

.     replace inpc=103.9006667  if wave==19
(7,799 real changes made)

. replace ingocup=100*ingocup/inpc
variable ingocup was long now double
(5,590 real changes made)

. 
. *------------------------------------------------------------------------------
. * 1.1 Exposure, built on the micro data and carried through the collapse
. *------------------------------------------------------------------------------
. gen cohort=2000+wave-eda

. gen exposure=0

.     replace exposure=1/3 if cohort==1999 & public
(2,074 real changes made)

.     replace exposure=2/3 if cohort==2000 & public
(2,468 real changes made)

.     replace exposure=1   if cohort==2001 & public
(1,819 real changes made)

. gen exp_inf=exposure*inf_pre

. 
. di as txt _n "1.1 Exposure by cohort and school type (private must be zero):"

1.1 Exposure by cohort and school type (private must be zero):

. table cohort public, statistic(mean exposure) nformat(%5.3f) nototals

-----------------------
       |      public   
       |      0       1
-------+---------------
cohort |               
  1996 |  0.000   0.000
  1997 |  0.000   0.000
  1998 |  0.000   0.000
  1999 |  0.000   0.333
  2000 |  0.000   0.667
  2001 |  0.000   1.000
-----------------------

. 
. di as txt _n "    Cohort by wave (each cohort in exactly one wave, which is why"

    Cohort by wave (each cohort in exactly one wave, which is why

. di as txt "    i.wave is nested in i.cohort):"
    i.wave is nested in i.cohort):

. table cohort wave, nototals

-----------------------
       |       wave    
       |     16      19
-------+---------------
cohort |               
  1996 |  2,532        
  1997 |  2,398        
  1998 |  2,261        
  1999 |          2,543
  2000 |          3,040
  2001 |          2,216
-----------------------

. 
. *------------------------------------------------------------------------------
. * 1.2 Cell aggregates: condition inside the total, not in by()
. *------------------------------------------------------------------------------
. gen pos_inc = (ingocup>0 & !missing(ingocup))

. gen fac_inc = fac_pob if pos_inc
(9,400 missing values generated)

. 
. egen pop     = total(fac_pob),                      by(wave state cohort public)

. egen npart   = total(fac_pob*(clase1==1)),          by(wave state cohort public)

. egen nocup   = total(fac_pob*(clase2==1)),          by(wave state cohort public)

. egen nform   = total(fac_pob*(formal==1)),          by(wave state cohort public)

. egen ninf    = total(fac_pob*(informal==1)),        by(wave state cohort public)

. egen nhighed = total(fac_pob*(enroll_hs==1)),       by(wave state cohort public)

. egen inctot  = total(ingocup*fac_pob*(pos_inc==1)), by(wave state cohort public)

. egen incpop  = total(fac_pob*(pos_inc==1)),         by(wave state cohort public)

. 
. * conditional rates
. gen tpart   = 100*npart/pop

. gen temp    = 100*nocup/npart if npart>0
(48 missing values generated)

. gen tform   = 100*nform/nocup if nocup>0
(68 missing values generated)

. gen thighed = 100*nhighed/pop

. gen avg_inc = inctot/incpop   if incpop>0
(72 missing values generated)

. 
. * population shares (Table A.2 analogue): formal + informal = employment
. gen tocup_pop = 100*nocup/pop

. gen tform_pop = 100*nform/pop

. gen tinf_pop  = 100*ninf/pop

. 
. * T7: same shares within higher-education status, as shares of each subgroup.
. * Continuers keep student IMSS coverage; non-continuers lose it.
. egen pop_he   = total(fac_pob*(enroll_hs==1)),               by(wave state cohort public)

. egen pop_nhe  = total(fac_pob*(enroll_hs==0)),               by(wave state cohort public)

. egen nform_he = total(fac_pob*(formal==1 & enroll_hs==1)),   by(wave state cohort public)

. egen nform_nhe= total(fac_pob*(formal==1 & enroll_hs==0)),   by(wave state cohort public)

. egen ninf_he  = total(fac_pob*(informal==1 & enroll_hs==1)), by(wave state cohort public)

. egen ninf_nhe = total(fac_pob*(informal==1 & enroll_hs==0)), by(wave state cohort public)

. 
. gen tform_he  = 100*nform_he/pop_he   if pop_he>0
(65 missing values generated)

. gen tinf_he   = 100*ninf_he/pop_he    if pop_he>0
(65 missing values generated)

. gen tform_nhe = 100*nform_nhe/pop_nhe if pop_nhe>0
(26 missing values generated)

. gen tinf_nhe  = 100*ninf_nhe/pop_nhe  if pop_nhe>0
(26 missing values generated)

. 
. *------------------------------------------------------------------------------
. * 1.3 What the cell fix changes
. *------------------------------------------------------------------------------
. egen formal_pop_old = total(fac_pob), by(wave state cohort public formal)

. egen ocup_pop_old   = total(fac_pob), by(wave state cohort public clase2)

. gen tform_old = 100*formal_pop_old/ocup_pop_old if formal==1 & clase2==1
(12,727 missing values generated)

. 
. collapse tpart temp tform tform_old thighed avg_inc ///
>          tocup_pop tform_pop tinf_pop ///
>          tform_he tinf_he tform_nhe tinf_nhe ///
>          exposure exp_inf inf_pre highed_parent job_hs lgdp ///
>          (sum) fac_pob fac_inc, by(wave state cohort public)

. 
. di as txt _n "1.3 Cells retained, published construction vs corrected:"

1.3 Cells retained, published construction vs corrected:

. foreach v in tpart temp tform tform_old thighed avg_inc ///
>              tocup_pop tform_pop tinf_pop tform_he tform_nhe {
  2.     quietly count if !missing(`v')
  3.     di as txt "    " %-12s "`v'" %6.0f r(N)
  4. }
    tpart          383
    temp           376
    tform          373
    tform_old      319
    thighed        383
    avg_inc        372
    tocup_pop      383
    tform_pop      383
    tinf_pop       383
    tform_he       374
    tform_nhe      379

. 
. di as txt _n "    Cells the published tform drops, by informality tercile:"

    Cells the published tform drops, by informality tercile:

. xtile _tile = inf_pre, nq(3)

. tabulate _tile if !missing(tform) & missing(tform_old)

3 quantiles |
 of inf_pre |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |          9       16.67       16.67
          2 |         13       24.07       40.74
          3 |         32       59.26      100.00
------------+-----------------------------------
      Total |         54      100.00

. drop _tile

. 
. di as txt _n "    Mean tform, cells kept by the published version:"

    Mean tform, cells kept by the published version:

. summarize tform if !missing(tform_old)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
       tform |        319    36.29924    21.89123   .7723514        100

. di as txt "    Mean tform, cells it drops:"
    Mean tform, cells it drops:

. summarize tform if missing(tform_old) & !missing(tform)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
       tform |         54           0           0          0          0

. 
. gen w     = sqrt(fac_pob)

. gen w_inc = sqrt(fac_inc)

. 
. gen lgdp_exp     = lgdp*exp_inf

. gen highedp_exp  = highed_parent*exp_inf

. gen job_hs_exp   = job_hs*exp_inf

. 
. gen lgdp_exp2    = lgdp*exposure

. gen highedp_exp2 = highed_parent*exposure

. gen job_hs_exp2  = job_hs*exposure

. 
. egen cohpub = group(cohort public)

. 
. di as txt _n "1.4 Adding-up check: tform_pop + tinf_pop - tocup_pop"

1.4 Adding-up check: tform_pop + tinf_pop - tocup_pop

. gen double _chk = tform_pop + tinf_pop - tocup_pop

. summarize _chk, format

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        _chk |        383   -4.40e-08    1.49e-06  -5.72e-06   4.77e-06

. drop _chk

. 
. save "ThemeG/enilems_cells.dta", replace
file ThemeG/enilems_cells.dta saved

. 
. 
. ********************************************************************************
. * SECTION 2: PUBLISHED SPECIFICATION
. ********************************************************************************
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 2: published specification, on corrected cells"
SECTION 2: published specification, on corrected cells

. di as res "{hline 78}"
------------------------------------------------------------------------------

. 
. di as txt _n "2.1 Treatment against its own controls:"

2.1 Treatment against its own controls:

. corr exp_inf lgdp_exp highedp_exp job_hs_exp
(obs=383)

             |  exp_inf lgdp_exp highed~p job_hs~p
-------------+------------------------------------
     exp_inf |   1.0000
    lgdp_exp |   0.9979   1.0000
 highedp_exp |   0.9385   0.9384   1.0000
  job_hs_exp |   0.9230   0.9165   0.8646   1.0000


. 
. di as txt _n "2.2 Coefficients (Table 8: 1.31 / 0.15 / 1.27 / -1.17 / 103.52)"

2.2 Coefficients (Table 8: 1.31 / 0.15 / 1.27 / -1.17 / 103.52)

. foreach y in tpart temp tform thighed {
  2.     quietly areg `y' exp_inf lgdp_exp highedp_exp job_hs_exp i.state i.wave ///
>         [aw=w], absorb(public) cluster(state)
  3.     gpost exp_inf, block("published") outcome("`y'")
  4. }
    tpart             1.303  (  0.576)   WCB p =  0.073   N = 383
    temp              0.250  (  0.295)   WCB p =  0.358   N = 376
    tform             1.889  (  0.651)   WCB p =  0.060   N = 373
    thighed          -1.413  (  0.861)   WCB p =  0.087   N = 383

. quietly areg avg_inc exp_inf lgdp_exp highedp_exp job_hs_exp i.state i.wave ///
>     [aw=w], absorb(public) cluster(state)

. gpost exp_inf, block("published") outcome("avg_inc_w")
    avg_inc_w       103.517  ( 33.836)   WCB p =  0.009   N = 372

. 
. di as txt _n "2.3 The same on the uncorrected tform, isolating the cell fix"

2.3 The same on the uncorrected tform, isolating the cell fix

. quietly areg tform_old exp_inf lgdp_exp highedp_exp job_hs_exp i.state i.wave ///
>     [aw=w], absorb(public) cluster(state)

. gpost exp_inf, block("published_old") outcome("tform_old")
    tform_old         1.274  (  0.696)   WCB p =  0.179   N = 319

. 
. di as txt _n "2.4 Evaluated at sample means, which is what the model implies"

2.4 Evaluated at sample means, which is what the model implies

. foreach y in tpart tform {
  2.     quietly areg `y' exp_inf lgdp_exp highedp_exp job_hs_exp i.state i.wave ///
>         [aw=w], absorb(public) cluster(state)
  3.     quietly summarize lgdp          [aw=w] if e(sample)
  4.     local m1 = r(mean)
  5.     quietly summarize highed_parent [aw=w] if e(sample)
  6.     local m2 = r(mean)
  7.     quietly summarize job_hs        [aw=w] if e(sample)
  8.     local m3 = r(mean)
  9.     di as txt _n "    `y' at means:"
 10.     lincom exp_inf + `m1'*lgdp_exp + `m2'*highedp_exp + `m3'*job_hs_exp
 11. }

    tpart at means:

 ( 1)  exp_inf + 13.10202*lgdp_exp + .2951348*highedp_exp + .1912821*job_hs_exp = 0

------------------------------------------------------------------------------
       tpart | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
         (1) |  -.2020483   .0559487    -3.61   0.001    -.3161565   -.0879401
------------------------------------------------------------------------------

    tform at means:

 ( 1)  exp_inf + 13.10337*lgdp_exp + .2930467*highedp_exp + .1913251*job_hs_exp = 0

------------------------------------------------------------------------------
       tform | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
         (1) |   .0429668   .0859277     0.50   0.621    -.1322839    .2182174
------------------------------------------------------------------------------

. 
. 
. ********************************************************************************
. * SECTION 3: CORRECTED SPECIFICATION
. ********************************************************************************
. *   Table 3                      ENILEMS
. *   absorb(cohort)               absorb(cohpub)   exposure = f(cohort, public)
. *   i.state                      i.state
. *   i.t                          --               wave nested in cohort
. *   gdp_pc_exp (x Exposure)      lgdp_exp2 (x Exposure)
. *   inf_pre_exp                  exp_inf
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 3: corrected specification"
SECTION 3: corrected specification

. di as res "{hline 78}"
------------------------------------------------------------------------------

. di as txt "  Table 3: participation 0.44, employment 0.15, formality 1.28," _n ///
>           "  income 21.33" _n
  Table 3: participation 0.44, employment 0.15, formality 1.28,
  income 21.33


. 
. foreach y in tpart temp tform thighed {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         [aw=w], absorb(cohpub) cluster(state)
  3.     gpost exp_inf, block("corrected") outcome("`y'")
  4. }
    tpart             0.288  (  0.127)   WCB p =  0.027   N = 383
    temp             -0.183  (  0.157)   WCB p =  0.285   N = 376
    tform            -0.124  (  0.201)   WCB p =  0.550   N = 373
    thighed          -0.152  (  0.157)   WCB p =  0.356   N = 383

. quietly areg avg_inc exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>     [aw=w_inc], absorb(cohpub) cluster(state)

. gpost exp_inf, block("corrected") outcome("avg_inc")
    avg_inc          12.960  ( 12.891)   WCB p =  0.342   N = 372

. 
. di as txt _n "3.1 cohpub must absorb exposure exactly as cohort effects do in"

3.1 cohpub must absorb exposure exactly as cohort effects do in

. di as txt "    Table 3: exposure should be omitted for collinearity."
    Table 3: exposure should be omitted for collinearity.

. areg tform exp_inf exposure lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>     [aw=w], absorb(cohpub) cluster(state)
(sum of wgt is 37,733.9527845383)
note: exposure omitted because of collinearity

Linear regression, absorbing indicators            Number of obs     =     373
Absorbed variable: cohpub                          No. of categories =      12
                                                   F(15, 31)         =       .
                                                   Prob > F          =       .
                                                   R-squared         =  0.5084
                                                   Adj R-squared     =  0.4391
                                                   Root MSE          = 16.1316

                                 (Std. err. adjusted for 32 clusters in state)
------------------------------------------------------------------------------
             |               Robust
       tform | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     exp_inf |   -.124156   .2011972    -0.62   0.542    -.5345005    .2861884
    exposure |          0  (omitted)
   lgdp_exp2 |  -6.651876   2.882717    -2.31   0.028    -12.53122   -.7725358
highedp_exp2 |   14.78199    19.4688     0.76   0.453    -24.92488    54.48886
 job_hs_exp2 |  -36.74946    18.3082    -2.01   0.054    -74.08929    .5903669
             |
       state |
          2  |   18.67674   .6476987    28.84   0.000     17.35575    19.99773
          3  |   3.662104   .9867554     3.71   0.001     1.649603    5.674605
          4  |   -22.7782   1.653907   -13.77   0.000    -26.15137   -19.40504
          5  |    13.4096    .839418    15.97   0.000     11.69759     15.1216
          6  |  -14.80286   .6539321   -22.64   0.000    -16.13657   -13.46916
          7  |  -27.36295   1.831641   -14.94   0.000    -31.09861    -23.6273
          8  |   8.597876   .6407787    13.42   0.000     7.290999    9.904753
          9  |   13.62019   2.131932     6.39   0.000     9.272085    17.96829
         10  |  -7.944244   1.152631    -6.89   0.000    -10.29505   -5.593438
         11  |  -1.190092   1.432408    -0.83   0.412    -4.111508    1.731324
         12  |   -28.8009   1.962932   -14.67   0.000    -32.80433   -24.79748
         13  |   -24.5766   1.677738   -14.65   0.000    -27.99837   -21.15484
         14  |  -1.011961    1.43044    -0.71   0.485    -3.929363    1.905441
         15  |  -4.485303   1.774421    -2.53   0.017    -8.104259   -.8663475
         16  |  -20.90138   1.702518   -12.28   0.000    -24.37369   -17.42907
         17  |   -19.7164    1.48174   -13.31   0.000    -22.73842   -16.69437
         18  |  -20.79027   1.110229   -18.73   0.000     -23.0546   -18.52594
         19  |   11.39894   1.191419     9.57   0.000     8.969025    13.82885
         20  |  -31.72431   1.823694   -17.40   0.000    -35.44376   -28.00486
         21  |  -23.98569    1.87099   -12.82   0.000     -27.8016   -20.16978
         22  |   .9120868   .6886634     1.32   0.195    -.4924514    2.316625
         23  |  -.6510089   .8488166    -0.77   0.449    -2.382182    1.080164
         24  |  -8.619198   .9219948    -9.35   0.000    -10.49962   -6.738778
         25  |  -10.17901   1.105299    -9.21   0.000    -12.43328   -7.924739
         26  |  -3.663668   1.342345    -2.73   0.010    -6.401399   -.9259376
         27  |  -19.04665   1.413135   -13.48   0.000    -21.92876   -16.16454
         28  |   4.631581   .9097194     5.09   0.000     2.776197    6.486966
         29  |  -26.39675   1.118759   -23.59   0.000    -28.67848   -24.11503
         30  |  -16.07627   1.825201    -8.81   0.000    -19.79879   -12.35374
         31  |  -17.84792   .9063276   -19.69   0.000    -19.69638   -15.99945
         32  |  -18.59273    .954598   -19.48   0.000    -20.53965   -16.64582
             |
       _cons |   65.27908   10.85172     6.02   0.000     43.14685    87.41131
------------------------------------------------------------------------------

. 
. di as txt _n "3.2 High-school-work interaction"

3.2 High-school-work interaction

. foreach y in tform thighed {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         [aw=w], absorb(cohpub) cluster(state)
  3.     gpost job_hs_exp2, block("jobhs") outcome("`y'")
  4. }
    tform           -36.749  ( 18.308)   WCB p =  0.059   N = 373
    thighed          18.111  ( 20.180)   WCB p =  0.387   N = 383

. 
. 
. ********************************************************************************
. * SECTION 4: ENILEMS POPULATION SHARES
. ********************************************************************************
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 4: ENILEMS population shares"
SECTION 4: ENILEMS population shares

. di as res "{hline 78}"
------------------------------------------------------------------------------

. di as txt "  Table A.2 Panel B: employment 0.61, formal 0.90, informal -0.29" _n
  Table A.2 Panel B: employment 0.61, formal 0.90, informal -0.29


. 
. foreach y in tocup_pop tform_pop tinf_pop {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         [aw=w], absorb(cohpub) cluster(state)
  3.     gpost exp_inf, block("enilems_pop") outcome("`y'")
  4. }
    tocup_pop         0.181  (  0.138)   WCB p =  0.200   N = 383
    tform_pop        -0.177  (  0.111)   WCB p =  0.128   N = 383
    tinf_pop          0.359  (  0.145)   WCB p =  0.030   N = 383

. 
. di as txt _n "4.1 Public-school graduates only"

4.1 Public-school graduates only

. foreach y in tocup_pop tform_pop tinf_pop {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         if public==1 [aw=w], absorb(cohort) cluster(state)
  3.     gpost exp_inf, block("enilems_pub") outcome("`y'")
  4. }
    tocup_pop         0.240  (  0.137)   WCB p =  0.071   N = 192
    tform_pop        -0.155  (  0.136)   WCB p =  0.259   N = 192
    tinf_pop          0.396  (  0.170)   WCB p =  0.026   N = 192

. 
. di as txt _n "4.2 T7: within ENILEMS, by higher-education continuation."

4.2 T7: within ENILEMS, by higher-education continuation.

. di as txt "    Continuers keep student IMSS coverage and should show"
    Continuers keep student IMSS coverage and should show

. di as txt "    substitution; non-continuers lose it and should look like the"
    substitution; non-continuers lose it and should look like the

. di as txt "    ENOE non-graduates."
    ENOE non-graduates.

. foreach y in tform_he tinf_he {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         [aw=w], absorb(cohpub) cluster(state)
  3.     gpost exp_inf, block("enilems_he") outcome("`y'")
  4. }
    tform_he         -0.162  (  0.155)   WCB p =  0.329   N = 374
    tinf_he           0.390  (  0.196)   WCB p =  0.068   N = 374

. foreach y in tform_nhe tinf_nhe {
  2.     quietly areg `y' exp_inf lgdp_exp2 highedp_exp2 job_hs_exp2 i.state ///
>         [aw=w], absorb(cohpub) cluster(state)
  3.     gpost exp_inf, block("enilems_nhe") outcome("`y'")
  4. }
    tform_nhe        -0.293  (  0.115)   WCB p =  0.021   N = 379
    tinf_nhe          0.277  (  0.151)   WCB p =  0.078   N = 379

. 
. 
. ********************************************************************************
. * SECTION 5: ENOE -- BASELINES, COMPOSITION, AND THE LADDER
. ********************************************************************************
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 5: ENOE"
SECTION 5: ENOE

. di as res "{hline 78}"
------------------------------------------------------------------------------

. 
. *------------------------------------------------------------------------------
. * 5.1  T1: does exposure shift who graduates, or who is enrolled?
. *------------------------------------------------------------------------------
. di as res _n "5.1 T1 -- composition. If exposure moves the graduate or"

5.1 T1 -- composition. If exposure moves the graduate or

. di as res "    enrollment share, the splits below condition on a potential"
    enrollment share, the splits below condition on a potential

. di as res "    outcome and are descriptive only."
    outcome and are descriptive only.

. 
. use "$update23/panel_16_22.dta", clear

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

. keep if inrange(year,2016,2019)
(952,017 observations deleted)

. drop if clase1==0
(13,382 observations deleted)

. gen byte hsgrad = inrange(anios_esc,12,25)

. keep if inrange(eda,18,20)
(1,172,488 observations deleted)

. 
. egen pop    = total(fac),                by(per cohort state)

. egen ngrad  = total(fac*(hsgrad==1)),    by(per cohort state)

. egen nsch   = total(fac*(school==1)),    by(per cohort state)

. 
. gen tgrad_pop = 100*ngrad/pop

. gen tsch_pop  = 100*nsch/pop

. 
. collapse tgrad_pop tsch_pop (sum) fac, by(per cohort state)

. sort state

. merge m:1 state using "$update23/longdiff_covariates"

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,055  (_merge==3)
    -----------------------------------------

.     keep if _merge==3
(0 observations deleted)

.     drop _merge

. replace gdp_pc = ln(gdp_pc)
(2,055 real changes made)

. gen t = per

. gen w = sqrt(fac)

. gen exposure = inrange(cohort,2001,2004)

.     replace exposure = 1/3 if cohort==1999
(386 real changes made)

.     replace exposure = 2/3 if cohort==2000
(256 real changes made)

. gen exp_inf    = exposure*inf_pre

. gen gdp_exp    = gdp_pc*exposure

. gen school_exp = school_attain*exposure

. 
. foreach y in tgrad_pop tsch_pop {
  2.     quietly areg `y' exp_inf gdp_exp school_exp i.state i.t [aw=w], ///
>         absorb(cohort) cluster(state)
  3.     gpost exp_inf, block("composition") outcome("`y'")
  4. }
    tgrad_pop        -0.237  (  0.091)   WCB p =  0.018   N = 2055
    tsch_pop          0.015  (  0.088)   WCB p =  0.875   N = 2055

. 
. *------------------------------------------------------------------------------
. * 5.2  T2: is the identifying variation comparable across subsamples?
. * 5.3  T3: what are the baseline levels?
. *------------------------------------------------------------------------------
. di as res _n "5.2/5.3 T2 and T3 -- support and baselines by subsample"

5.2/5.3 T2 and T3 -- support and baselines by subsample

. 
. use "$update23/panel_16_22.dta", clear

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

. keep if inrange(year,2016,2019)
(952,017 observations deleted)

. drop if clase1==0
(13,382 observations deleted)

. gen byte hsgrad = inrange(anios_esc,12,25)

. 
. * inf_pre is not in panel_16_22; it comes from longdiff_covariates, which is
. * merged after the collapse everywhere else in this file. Merge it here at the
. * micro level so the diagnostics can use it.
. sort state

. merge m:1 state using "$update23/longdiff_covariates", keepusing(inf_pre)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                         1,505,867  (_merge==3)
    -----------------------------------------

.     keep if _merge==3
(0 observations deleted)

.     drop _merge

. 
. * school is missing for respondents who did not answer cs_p17, so the enrolled
. * and not-enrolled subsamples do not sum to the total. Report the shortfall.
. quietly count if inrange(eda,18,20)

. local n1820 = r(N)

. quietly count if inrange(eda,18,20) & missing(school)

. di as txt _n "  ages 18-20 with school missing: " r(N) " of " `n1820'

  ages 18-20 with school missing: 4 of 333379

. 
. foreach cut in "inrange(eda,15,18)" ///
>                "inrange(eda,18,20)" ///
>                "inrange(eda,18,20) & hsgrad==1" ///
>                "inrange(eda,18,20) & hsgrad==0" ///
>                "inrange(eda,18,20) & school==1" ///
>                "inrange(eda,18,20) & school==0" {
  2. 
.     di as txt _n "  sample: `cut'"
  3. 
.     quietly count if `cut'
  4.     local npop = r(N)
  5.     di as txt "    obs                " %9.0f `npop'
  6. 
.     quietly summarize inf_pre [aw=fac] if `cut'
  7.     di as txt "    inf_pre  mean      " %9.1f r(mean) "   sd " %5.1f r(sd)
  8. 
.     quietly count if `cut' & clase2==1
  9.     local nemp = r(N)
 10.     di as txt "    employed / pop     " %9.1f 100*`nemp'/`npop' " pct"
 11. 
.     if `nemp' > 0 {
 12.         quietly summarize formal [aw=fac] if `cut' & clase2==1
 13.         di as txt "    formal | employed  " %9.1f 100*r(mean) " pct"
 14.         quietly summarize formal [aw=fac] if `cut' & clase2==1
 15.         local fshare = r(mean)
 16.         di as txt "    formal / pop       " %9.1f 100*`fshare'*`nemp'/`npop' " pct"
 17.     }
 18. }

  sample: inrange(eda,15,18)
    obs                   464013
    inf_pre  mean           58.7   sd  12.7
    employed / pop          23.8 pct
    formal | employed       11.2 pct
    formal / pop             2.7 pct

  sample: inrange(eda,18,20)
    obs                   333379
    inf_pre  mean           58.2   sd  12.6
    employed / pop          42.0 pct
    formal | employed       30.2 pct
    formal / pop            12.7 pct

  sample: inrange(eda,18,20) & hsgrad==1
    obs                   142683
    inf_pre  mean           57.7   sd  12.3
    employed / pop          36.3 pct
    formal | employed       37.1 pct
    formal / pop            13.5 pct

  sample: inrange(eda,18,20) & hsgrad==0
    obs                   190696
    inf_pre  mean           58.5   sd  12.8
    employed / pop          46.3 pct
    formal | employed       26.5 pct
    formal / pop            12.3 pct

  sample: inrange(eda,18,20) & school==1
    obs                   175373
    inf_pre  mean           57.2   sd  12.1
    employed / pop          23.5 pct
    formal | employed       25.5 pct
    formal / pop             6.0 pct

  sample: inrange(eda,18,20) & school==0
    obs                   158002
    inf_pre  mean           59.1   sd  12.9
    employed / pop          62.6 pct
    formal | employed       31.8 pct
    formal / pop            19.9 pct

. 
. *------------------------------------------------------------------------------
. * 5.4  The ladder
. *------------------------------------------------------------------------------
. di as res _n "5.4 The population ladder"

5.4 The population ladder

. 
. forvalues s = 1/4 {
  2.     use "$update23/panel_16_22.dta", clear
  3.     gen year = mod(per,100)+2000
  4.     keep if inrange(year,2016,2019)
  5.     drop if clase1==0
  6.     gen byte hsgrad = inrange(anios_esc,12,25)
  7. 
.     if `s'==1 {
  8.         local sl "enoe_15_18"
  9.         di as res _n "--- ages 15-18, all (Table A.2 population) ---"
 10.         keep if inrange(eda,15,18)
 11.     }
 12.     if `s'==2 {
 13.         local sl "enoe_18_20"
 14.         di as res _n "--- ages 18-20, all ---"
 15.         keep if inrange(eda,18,20)
 16.     }
 17.     if `s'==3 {
 18.         local sl "enoe_18_20_g"
 19.         di as res _n "--- ages 18-20, HS graduates (ENILEMS population) ---"
 20.         keep if inrange(eda,18,20) & hsgrad==1
 21.     }
 22.     if `s'==4 {
 23.         local sl "enoe_18_20_ng"
 24.         di as res _n "--- ages 18-20, non-graduates ---"
 25.         keep if inrange(eda,18,20) & hsgrad==0
 26.     }
 27.     enoecells, block("`sl'")
 28. }
(952,017 observations deleted)
(13,382 observations deleted)

--- ages 15-18, all (Table A.2 population) ---
(1,041,854 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,565  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,565 real changes made)
(384 real changes made)
(512 real changes made)
    cells: 2565
    inf_pre, weighted mean  58.1  sd  13.0  range [37.4, 80.3]
    tocup_pop         0.279  (  0.079)   WCB p =  0.006   N = 2565
    tform_pop         0.395  (  0.031)   WCB p =  0.000   N = 2565
    tinf_pop         -0.116  (  0.068)   WCB p =  0.139   N = 2565
(952,017 observations deleted)
(13,382 observations deleted)

--- ages 18-20, all ---
(1,172,488 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,055  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,055 real changes made)
(386 real changes made)
(256 real changes made)
    cells: 2055
    inf_pre, weighted mean  57.9  sd  13.0  range [37.4, 80.3]
    tocup_pop         0.142  (  0.091)   WCB p =  0.167   N = 2055
    tform_pop         0.259  (  0.044)   WCB p =  0.001   N = 2055
    tinf_pop         -0.117  (  0.070)   WCB p =  0.161   N = 2055
(952,017 observations deleted)
(13,382 observations deleted)

--- ages 18-20, HS graduates (ENILEMS population) ---
(1,363,184 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,041  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,041 real changes made)
(383 real changes made)
(254 real changes made)
    cells: 2041
    inf_pre, weighted mean  57.5  sd  12.9  range [37.4, 80.3]
    tocup_pop         0.144  (  0.146)   WCB p =  0.526   N = 2041
    tform_pop         0.070  (  0.079)   WCB p =  0.418   N = 2041
    tinf_pop          0.074  (  0.116)   WCB p =  0.739   N = 2041
(952,017 observations deleted)
(13,382 observations deleted)

--- ages 18-20, non-graduates ---
(1,315,171 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,052  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,052 real changes made)
(386 real changes made)
(256 real changes made)
    cells: 2052
    inf_pre, weighted mean  58.1  sd  13.1  range [37.4, 80.3]
    tocup_pop         0.065  (  0.089)   WCB p =  0.484   N = 2052
    tform_pop         0.417  (  0.042)   WCB p =  0.000   N = 2052
    tinf_pop         -0.352  (  0.081)   WCB p =  0.007   N = 2052

. 
. *------------------------------------------------------------------------------
. * 5.5  T4: the sharper split -- current school enrollment
. *------------------------------------------------------------------------------
. di as res _n "5.5 T4 -- current enrollment. This is the variable the theory"

5.5 T4 -- current enrollment. This is the variable the theory

. di as res "    actually concerns: the enrolled retain student IMSS coverage."
    actually concerns: the enrolled retain student IMSS coverage.

. 
. forvalues s = 1/2 {
  2.     use "$update23/panel_16_22.dta", clear
  3.     gen year = mod(per,100)+2000
  4.     keep if inrange(year,2016,2019)
  5.     drop if clase1==0
  6.     keep if inrange(eda,18,20)
  7. 
.     if `s'==1 {
  8.         local sl "enoe_18_20_sch"
  9.         di as res _n "--- ages 18-20, currently enrolled ---"
 10.         keep if school==1
 11.     }
 12.     if `s'==2 {
 13.         local sl "enoe_18_20_nsch"
 14.         di as res _n "--- ages 18-20, not enrolled ---"
 15.         keep if school==0
 16.     }
 17.     enoecells, block("`sl'")
 18. }
(952,017 observations deleted)
(13,382 observations deleted)
(1,172,488 observations deleted)

--- ages 18-20, currently enrolled ---
(158,006 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,051  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,051 real changes made)
(384 real changes made)
(256 real changes made)
    cells: 2051
    inf_pre, weighted mean  57.4  sd  12.8  range [37.4, 80.3]
    tocup_pop         0.167  (  0.081)   WCB p =  0.152   N = 2051
    tform_pop         0.109  (  0.027)   WCB p =  0.002   N = 2051
    tinf_pop          0.058  (  0.067)   WCB p =  0.516   N = 2051
(952,017 observations deleted)
(13,382 observations deleted)
(1,172,488 observations deleted)

--- ages 18-20, not enrolled ---
(175,377 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,052  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,052 real changes made)
(386 real changes made)
(256 real changes made)
    cells: 2052
    inf_pre, weighted mean  58.3  sd  13.1  range [37.4, 80.3]
    tocup_pop         0.166  (  0.100)   WCB p =  0.120   N = 2052
    tform_pop         0.152  (  0.079)   WCB p =  0.066   N = 2052
    tinf_pop          0.015  (  0.089)   WCB p =  0.874   N = 2052

. 
. 
. ********************************************************************************
. * SECTION 6: ROBUSTNESS OF THE SPLIT
. ********************************************************************************
. 
. di as res _n(2) "{hline 78}"


------------------------------------------------------------------------------

. di as res "SECTION 6: robustness"
SECTION 6: robustness

. di as res "{hline 78}"
------------------------------------------------------------------------------

. 
. *------------------------------------------------------------------------------
. * 6.1  T5: placebo. Untreated cohorts, fake exposure, same splits.
. *------------------------------------------------------------------------------
. di as res _n "6.1 T5 -- placebo exposure on cohorts 1995-1998 with 1991-1994 as"

6.1 T5 -- placebo exposure on cohorts 1995-1998 with 1991-1994 as

. di as res "    controls, no age restriction (those cohorts are not observed at"
    controls, no age restriction (those cohorts are not observed at

. di as res "    18-20 in this window). Any formalization pattern here means the"
    18-20 in this window). Any formalization pattern here means the

. di as res "    split is picking up something other than the policy."
    split is picking up something other than the policy.

. 
. forvalues s = 1/3 {
  2.     use "$update23/panel_16_22.dta", clear
  3.     gen year = mod(per,100)+2000
  4.     keep if inrange(year,2016,2019)
  5.     drop if clase1==0
  6.     keep if inrange(cohort,1991,1998)
  7.     gen byte hsgrad = inrange(anios_esc,12,25)
  8. 
.     if `s'==1 {
  9.         local sl "placebo_all"
 10.         di as res _n "--- placebo, all ---"
 11.     }
 12.     if `s'==2 {
 13.         local sl "placebo_g"
 14.         di as res _n "--- placebo, graduates ---"
 15.         keep if hsgrad==1
 16.     }
 17.     if `s'==3 {
 18.         local sl "placebo_ng"
 19.         di as res _n "--- placebo, non-graduates ---"
 20.         keep if hsgrad==0
 21.     }
 22.     enoecells, block("`sl'") placebo
 23. }
(952,017 observations deleted)
(13,382 observations deleted)
(672,410 observations deleted)

--- placebo, all ---

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             4,096  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(4,096 real changes made)
    cells: 4096
    inf_pre, weighted mean  57.9  sd  12.9  range [37.4, 80.3]
    tocup_pop        -0.044  (  0.032)   WCB p =  0.217   N = 4096
    tform_pop         0.155  (  0.035)   WCB p =  0.008   N = 4096
    tinf_pop         -0.199  (  0.034)   WCB p =  0.002   N = 4096
(952,017 observations deleted)
(13,382 observations deleted)
(672,410 observations deleted)

--- placebo, graduates ---
(370,269 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             4,094  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(4,094 real changes made)
    cells: 4094
    inf_pre, weighted mean  57.5  sd  12.8  range [37.4, 80.3]
    tocup_pop         0.021  (  0.044)   WCB p =  0.675   N = 4094
    tform_pop         0.267  (  0.069)   WCB p =  0.014   N = 4094
    tinf_pop         -0.246  (  0.046)   WCB p =  0.003   N = 4094
(952,017 observations deleted)
(13,382 observations deleted)
(672,410 observations deleted)

--- placebo, non-graduates ---
(463,188 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             4,096  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(4,096 real changes made)
    cells: 4096
    inf_pre, weighted mean  58.3  sd  13.1  range [37.4, 80.3]
    tocup_pop        -0.109  (  0.056)   WCB p =  0.266   N = 4096
    tform_pop         0.088  (  0.023)   WCB p =  0.003   N = 4096
    tinf_pop         -0.197  (  0.054)   WCB p =  0.018   N = 4096

. 
. *------------------------------------------------------------------------------
. * 6.2  T6: alternative age windows
. *------------------------------------------------------------------------------
. di as res _n "6.2 T6 -- age windows. If the contrast is a life-cycle pattern it"

6.2 T6 -- age windows. If the contrast is a life-cycle pattern it

. di as res "    should strengthen as cohorts age into the labour market, not"
    should strengthen as cohorts age into the labour market, not

. di as res "    appear only at 18-20."
    appear only at 18-20.

. 
. foreach aw in "15 17" "16 18" "17 19" "18 20" {
  2.     local a1 : word 1 of `aw'
  3.     local a2 : word 2 of `aw'
  4.     forvalues s = 1/2 {
  5.         use "$update23/panel_16_22.dta", clear
  6.         gen year = mod(per,100)+2000
  7.         keep if inrange(year,2016,2019)
  8.         drop if clase1==0
  9.         gen byte hsgrad = inrange(anios_esc,12,25)
 10.         keep if inrange(eda,`a1',`a2')
 11. 
.         if `s'==1 {
 12.             local sl "age`a1'`a2'_g"
 13.             di as res _n "--- ages `a1'-`a2', graduates ---"
 14.             keep if hsgrad==1
 15.         }
 16.         if `s'==2 {
 17.             local sl "age`a1'`a2'_ng"
 18.             di as res _n "--- ages `a1'-`a2', non-graduates ---"
 19.             keep if hsgrad==0
 20.         }
 21.         capture noisily enoecells, block("`sl'")
 22.     }
 23. }
(952,017 observations deleted)
(13,382 observations deleted)
(1,159,407 observations deleted)

--- ages 15-17, graduates ---
(343,676 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                               806  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(806 real changes made)
(179 real changes made)
(208 real changes made)
    cells: 806
    inf_pre, weighted mean  57.2  sd  12.9  range [37.4, 80.3]
    tocup_pop         0.649  (  0.432)   WCB p =  0.237   N = 806
    tform_pop        -0.104  (  0.167)   WCB p =  0.547   N = 806
    tinf_pop          0.753  (  0.444)   WCB p =  0.195   N = 806
(952,017 observations deleted)
(13,382 observations deleted)
(1,159,407 observations deleted)

--- ages 15-17, non-graduates ---
(2,784 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,053  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,053 real changes made)
(256 real changes made)
(384 real changes made)
    cells: 2053
    inf_pre, weighted mean  58.2  sd  13.0  range [37.4, 80.3]
    tocup_pop         0.177  (  0.103)   WCB p =  0.314   N = 2053
    tform_pop         0.199  (  0.020)   WCB p =  0.000   N = 2053
    tinf_pop         -0.022  (  0.100)   WCB p =  0.848   N = 2053
(952,017 observations deleted)
(13,382 observations deleted)
(1,158,360 observations deleted)

--- ages 16-18, graduates ---
(318,450 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             1,361  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(1,361 real changes made)
(322 real changes made)
(351 real changes made)
    cells: 1361
    inf_pre, weighted mean  57.5  sd  12.9  range [37.4, 80.3]
    tocup_pop         0.118  (  0.188)   WCB p =  0.610   N = 1361
    tform_pop        -0.176  (  0.081)   WCB p =  0.071   N = 1361
    tinf_pop          0.294  (  0.188)   WCB p =  0.338   N = 1361
(952,017 observations deleted)
(13,382 observations deleted)
(1,158,360 observations deleted)

--- ages 16-18, non-graduates ---
(29,057 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,051  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,051 real changes made)
(384 real changes made)
(512 real changes made)
    cells: 2051
    inf_pre, weighted mean  58.1  sd  13.0  range [37.4, 80.3]
    tocup_pop         0.185  (  0.081)   WCB p =  0.112   N = 2051
    tform_pop         0.362  (  0.034)   WCB p =  0.000   N = 2051
    tinf_pop         -0.177  (  0.071)   WCB p =  0.031   N = 2051
(952,017 observations deleted)
(13,382 observations deleted)
(1,164,855 observations deleted)

--- ages 17-19, graduates ---
(258,637 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             1,829  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(1,829 real changes made)
(446 real changes made)
(342 real changes made)
    cells: 1829
    inf_pre, weighted mean  57.5  sd  12.9  range [37.4, 80.3]
    tocup_pop         0.166  (  0.142)   WCB p =  0.408   N = 1829
    tform_pop         0.060  (  0.079)   WCB p =  0.475   N = 1829
    tinf_pop          0.105  (  0.133)   WCB p =  0.611   N = 1829
(952,017 observations deleted)
(13,382 observations deleted)
(1,164,855 observations deleted)

--- ages 17-19, non-graduates ---
(82,375 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,057  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,057 real changes made)
(512 real changes made)
(387 real changes made)
    cells: 2057
    inf_pre, weighted mean  58.1  sd  13.0  range [37.4, 80.3]
    tocup_pop         0.195  (  0.073)   WCB p =  0.043   N = 2057
    tform_pop         0.491  (  0.042)   WCB p =  0.000   N = 2057
    tinf_pop         -0.296  (  0.075)   WCB p =  0.007   N = 2057
(952,017 observations deleted)
(13,382 observations deleted)
(1,172,488 observations deleted)

--- ages 18-20, graduates ---
(190,696 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,041  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,041 real changes made)
(383 real changes made)
(254 real changes made)
    cells: 2041
    inf_pre, weighted mean  57.5  sd  12.9  range [37.4, 80.3]
    tocup_pop         0.144  (  0.146)   WCB p =  0.526   N = 2041
    tform_pop         0.070  (  0.079)   WCB p =  0.418   N = 2041
    tinf_pop          0.074  (  0.116)   WCB p =  0.739   N = 2041
(952,017 observations deleted)
(13,382 observations deleted)
(1,172,488 observations deleted)

--- ages 18-20, non-graduates ---
(142,683 observations deleted)

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                             2,052  (_merge==3)
    -----------------------------------------
(0 observations deleted)
(2,052 real changes made)
(386 real changes made)
(256 real changes made)
    cells: 2052
    inf_pre, weighted mean  58.1  sd  13.1  range [37.4, 80.3]
    tocup_pop         0.065  (  0.089)   WCB p =  0.484   N = 2052
    tform_pop         0.417  (  0.042)   WCB p =  0.000   N = 2052
    tinf_pop         -0.352  (  0.081)   WCB p =  0.007   N = 2052

. 
. 
. ********************************************************************************
. * SECTION 7: SUMMARY
. ********************************************************************************
. 
. postclose RES

. log close gres
      name:  gres
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tie
> nes IMSS/replication/output/ThemeG/ThemeG_results.txt
  log type:  text
 closed on:  20 Aug 2026, 17:10:37
--------------------------------------------------------------------------------------------------------------
