--------------------------------------------------------------------------------------------------------------
      name:  diag
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tie
> nes IMSS/replication/output/ThemeE/ThemeE_diagnostics.txt
  log type:  text
 opened on:  20 Aug 2026, 20:11:41

. 
. di as txt _n "Cell coverage by cohort (2016-2019):"

Cell coverage by cohort (2016-2019):

. di as txt "  cohort   cells   quarters   min age   max age"
  cohort   cells   quarters   min age   max age

. gen age = year - cohort

. forvalues k = `KMIN'/`KMAX' {
  2.     qui count if cohort==`k'
  3.     local nc = r(N)
  4.     qui levelsof t if cohort==`k', local(tt)
  5.     local nq : word count `tt'
  6.     qui su age if cohort==`k', meanonly
  7.     di as txt "   `k'    " %6.0f `nc' "    " %6.0f `nq' "    " ///
>         %6.0f r(min) "    " %6.0f r(max)
  8. }
   1991       512        16        25        28
   1992       512        16        24        27
   1993       512        16        23        26
   1994       512        16        22        25
   1995       512        16        21        24
   1996       512        16        20        23
   1997       512        16        19        22
   1998       512        16        18        21
   1999       512        16        17        20
   2000       512        16        16        19
   2001       512        16        15        18
   2002       512        16        14        17
   2003       512        16        13        16
   2004       512        16        12        15

. drop age

. 
. 
. ********************************************************************************
. * SECTION 5: ESTIMATION, NORMALISATION, EXPORT, SENSITIVITY
. ********************************************************************************
. 
. foreach y of local YLIST {
  2. 
.     di as res _n(2) "{hline 78}"
  3.     di as res "OUTCOME: `y'"
  4.     di as res "{hline 78}"
  5. 
.     *--------------------------------------------------------------------------
.     * 5.1 The Section 1 regression, verbatim
.     *--------------------------------------------------------------------------
.     qui reg `y' ibn.cohort ibn.cohort#(c.inf_pre c.gdp_pc c.school_attain) ///
>         ibn.cohort#i.t [aw=w], nocons cluster(state)
  6.     est store grad_`y'
  7.     local Gclust = e(N_clust)
  8. 
.     * locate the 14 gradients
.     local pos ""
  9.     forvalues k = `KMIN'/`KMAX' {
 10.         local p = colnumb(e(b), "`k'.cohort#c.inf_pre")
 11.         if missing(`p') {
 12.             di as err "coefficient `k'.cohort#c.inf_pre not found"
 13.             exit 111
 14.         }
 15.         local pos "`pos' `p'"
 16.     }
 17. 
.     matrix bf = e(b)
 18.     matrix Vf = e(V)
 19.     matrix b14 = J(1,`NK',.)
 20.     matrix V14 = J(`NK',`NK',.)
 21.     forvalues i = 1/`NK' {
 22.         local pi : word `i' of `pos'
 23.         matrix b14[1,`i'] = bf[1,`pi']
 24.         forvalues j = 1/`NK' {
 25.             local pj : word `j' of `pos'
 26.             matrix V14[`i',`j'] = Vf[`pi',`pj']
 27.         }
 28.     }
 29.     matrix V14 = `VSCALE' * V14
 30. 
.     local cnames ""
 31.     forvalues k = `KMIN'/`KMAX' {
 32.         local cnames "`cnames' c`k'"
 33.     }
 34.     matrix colnames b14 = `cnames'
 35.     matrix colnames V14 = `cnames'
 36.     matrix rownames V14 = `cnames'
 37. 
.     *--------------------------------------------------------------------------
.     * 5.2 Reproduction checks against the paper
.     *--------------------------------------------------------------------------
.     di as txt _n "--- `y': estimated gradients beta_k ---"
 38.     forvalues i = 1/`NK' {
 39.         local k = `KMIN' + `i' - 1
 40.         di as txt "  `k'   beta = " %8.4f b14[1,`i'] ///
>                   "   se = " %7.4f sqrt(V14[`i',`i'])
 41.     }
 42. 
.     * untreated band (paper: -1.58 to -1.29 formality; -0.46 to -0.26 particip.)
.     local lo = .
 43.     local hi = .
 44.     forvalues i = 1/`NK' {
 45.         local k = `KMIN' + `i' - 1
 46.         if `k' <= 1998 {
 47.             if missing(`lo') | b14[1,`i'] < `lo' local lo = b14[1,`i']
 48.             if missing(`hi') | b14[1,`i'] > `hi' local hi = b14[1,`i']
 49.         }
 50.     }
 51.     di as result "  untreated band (1991-1998): [" %6.2f `lo' ", " %6.2f `hi' "]"
 52. 
.     * F test on equality of untreated gradients (paper: F(7,31)=10.8 / 7.4)
.     est restore grad_`y'
 53.     qui test (1991.cohort#c.inf_pre = 1992.cohort#c.inf_pre) ///
>              (1992.cohort#c.inf_pre = 1993.cohort#c.inf_pre) ///
>              (1993.cohort#c.inf_pre = 1994.cohort#c.inf_pre) ///
>              (1994.cohort#c.inf_pre = 1995.cohort#c.inf_pre) ///
>              (1995.cohort#c.inf_pre = 1996.cohort#c.inf_pre) ///
>              (1996.cohort#c.inf_pre = 1997.cohort#c.inf_pre) ///
>              (1997.cohort#c.inf_pre = 1998.cohort#c.inf_pre)
 54.     di as result "  CHECK 2 (`y'): equality of untreated gradients F(7,31) = " ///
>         %6.2f r(F) "   p = " %6.4f r(p)
 55. 
.     *--------------------------------------------------------------------------
.     * 5.3 Cluster-jackknife (CV3) covariance
.     *--------------------------------------------------------------------------
.     if `DOCV3' {
 56.         qui levelsof state, local(states)
 57.         local G : word count `states'
 58.         matrix BJK = J(`G',`NK',.)
 59. 
.         local g 0
 60.         foreach s of local states {
 61.             local ++g
 62.             qui reg `y' ibn.cohort ///
>                 ibn.cohort#(c.inf_pre c.gdp_pc c.school_attain) ///
>                 ibn.cohort#i.t [aw=w] if state != `s', nocons cluster(state)
 63.             forvalues i = 1/`NK' {
 64.                 local k = `KMIN' + `i' - 1
 65.                 local p = colnumb(e(b), "`k'.cohort#c.inf_pre")
 66.                 if missing(`p') {
 67.                     di as err "jackknife rep `s': cohort `k' gradient dropped"
 68.                     exit 111
 69.                 }
 70.                 matrix BJK[`g',`i'] = e(b)[1,`p']
 71.             }
 72.         }
 73. 
.         * V_CV3 = ((G-1)/G) * sum_g (b_(g) - bbar)(b_(g) - bbar)'
.         matrix ones = J(`G',1,1)
 74.         matrix bbar = (ones' * BJK) / `G'
 75.         matrix DEV  = BJK - ones * bbar
 76.         matrix V14c = `VSCALE' * ((`G'-1)/`G') * (DEV' * DEV)
 77.         matrix colnames V14c = `cnames'
 78.         matrix rownames V14c = `cnames'
 79. 
.         di as txt _n "--- `y': CRV1 vs CV3 standard errors ---"
 80.         forvalues i = 1/`NK' {
 81.             local k = `KMIN' + `i' - 1
 82.             di as txt "  `k'   CRV1 " %7.4f sqrt(V14[`i',`i']) ///
>                       "   CV3 " %7.4f sqrt(V14c[`i',`i']) ///
>                       "   ratio " %5.2f sqrt(V14c[`i',`i']/V14[`i',`i'])
 83.         }
 84.     }
 85. 
.     *--------------------------------------------------------------------------
.     * 5.4 Export the raw 14-vector and covariance for R
.     *      (R applies the normalisation, so the reference cohort can be varied
.     *       without re-running Stata)
.     *--------------------------------------------------------------------------
.     foreach v in CRV1 CV3 {
 86.         if "`v'"=="CV3" & !`DOCV3' continue
 87.         if "`v'"=="CRV1" matrix VOUT = V14
 88.         else             matrix VOUT = V14c
 89. 
.         preserve
 90.             clear
 91.             svmat double b14, names(col)
 92.             export delimited using "ThemeE/beta14_`y'_`v'.csv", replace
 93.         restore
 94.         preserve
 95.             clear
 96.             svmat double VOUT, names(col)
 97.             export delimited using "ThemeE/sigma14_`y'_`v'.csv", replace
 98.         restore
 99.     }
100. 
.     *--------------------------------------------------------------------------
.     * 5.5 Normalise: theta = A beta, V_theta = A V A'
.     *--------------------------------------------------------------------------
.     matrix bE   = (A * b14')'
101.     matrix VE   = A * V14 * A'
102.     if `DOCV3' matrix VE3 = A * V14c * A'
103.     matrix colnames bE  = `EVLIST'
104.     matrix colnames VE  = `EVLIST'
105.     matrix rownames VE  = `EVLIST'
106. 
.     di as txt _n "--- `y': normalised gradients theta_k (ref = `KREF') ---"
107.     forvalues i = 1/`NTOT' {
108.         local k : word `i' of `EVLIST'
109.         di as txt "  `k'   theta = " %8.4f bE[1,`i']
110.     }
111. 
.     *--------------------------------------------------------------------------
.     * 5.6 Delta^SD grid from the observed pre-period curvature
.     *--------------------------------------------------------------------------
.     * pre-period path including the implicit zero at the reference cohort
.     local maxsd = 0
112.     forvalues i = 1/`=`NPRE'-1' {
113.         local p1 = bE[1,`i']
114.         local p2 = bE[1,`i'+1]
115.         local p3 = cond(`i'+2 <= `NPRE', bE[1,`i'+2], 0)
116.         local sd = abs(`p3' - 2*`p2' + `p1')
117.         if `sd' > `maxsd' local maxsd = `sd'
118.     }
119.     di as result _n "  max |second difference| across untreated cohorts = " ///
>         %7.4f `maxsd'
120.     local step = round(`maxsd'/3, 0.005)
121.     if `step' <= 0 local step = 0.005
122.     local MVEC_SD "0(`step')`=`SDMULT'*`step''"
123.     di as result "  Delta^SD grid: `MVEC_SD'"
124. 
.     *--------------------------------------------------------------------------
.     * 5.7 Sensitivity analysis
.     *--------------------------------------------------------------------------
.     local nspec : word count `SPECS'
125.     tokenize "`SPECS'", parse("|")
126.     local s 1
127.     while "``s''" != "" {
128.         if "``s''" != "|" {
129.             local v : word 1 of ``s''
130.             local L : word 2 of ``s''
131. 
.             if "`v'"=="CRV1" matrix VUSE = VE
132.             else             matrix VUSE = VE3
133. 
.             di as res _n "{hline 78}"
134.             di as res "`y' | vce = `v' | target = `L'"
135.             di as res "{hline 78}"
136. 
.             di as txt _n "Delta^RM (relative magnitudes):"
137.             honestdid, b(bE) vcov(VUSE) pre(1/`NPRE') ///
>                 post(`=`NPRE'+1'/`NTOT') mvec(`MVEC_RM') delta(rm) ///
>                 l_vec(lvec`L') alpha(0.05)
138.             * if this errors on the option name, this build wants lvec() not l_vec()
. 
.             di as txt _n "Delta^SD (smoothness):"
139.             honestdid, b(bE) vcov(VUSE) pre(1/`NPRE') ///
>                 post(`=`NPRE'+1'/`NTOT') mvec(`MVEC_SD') delta(sd) ///
>                 l_vec(lvec`L') alpha(0.05)
140. 
.             if "`v'"=="CV3" & "`L'"=="FULL" {
141.                 honestdid, b(bE) vcov(VUSE) pre(1/`NPRE') ///
>                     post(`=`NPRE'+1'/`NTOT') mvec(`MVEC_RM') delta(rm) ///
>                     l_vec(lvec`L') alpha(0.05) coefplot ///
>                     xtitle("Mbar") ytitle("95% robust CI") ///
>                     title("`y': relative magnitudes")
142.                 graph export "ThemeE/rm_`y'_`v'.pdf", replace
143. 
.                 honestdid, b(bE) vcov(VUSE) pre(1/`NPRE') ///
>                     post(`=`NPRE'+1'/`NTOT') mvec(`MVEC_SD') delta(sd) ///
>                     l_vec(lvec`L') alpha(0.05) coefplot ///
>                     xtitle("M") ytitle("95% robust CI") ///
>                     title("`y': smoothness")
144.                 graph export "ThemeE/sd_`y'_`v'.pdf", replace
145.             }
146.         }
147.         local ++s
148.     }
149. }


------------------------------------------------------------------------------
OUTCOME: tform
------------------------------------------------------------------------------

--- tform: estimated gradients beta_k ---
  1991   beta =  -1.2912   se =  0.0559
  1992   beta =  -1.4058   se =  0.0692
  1993   beta =  -1.4079   se =  0.0789
  1994   beta =  -1.4910   se =  0.0797
  1995   beta =  -1.5276   se =  0.0673
  1996   beta =  -1.5725   se =  0.0671
  1997   beta =  -1.5761   se =  0.0618
  1998   beta =  -1.3371   se =  0.0809
  1999   beta =  -1.2313   se =  0.0771
  2000   beta =  -0.9226   se =  0.0463
  2001   beta =  -0.4620   se =  0.0473
  2002   beta =  -0.1890   se =  0.0359
  2003   beta =  -0.0780   se =  0.0134
  2004   beta =  -0.0562   se =  0.0206
  untreated band (1991-1998): [ -1.58,  -1.29]
(results grad_tform are active now)
  CHECK 2 (tform): equality of untreated gradients F(7,31) =  10.79   p = 0.0000

--- tform: CRV1 vs CV3 standard errors ---
  1991   CRV1  0.0559   CV3  0.0620   ratio  1.11
  1992   CRV1  0.0692   CV3  0.0991   ratio  1.43
  1993   CRV1  0.0789   CV3  0.1077   ratio  1.36
  1994   CRV1  0.0797   CV3  0.0906   ratio  1.14
  1995   CRV1  0.0673   CV3  0.0755   ratio  1.12
  1996   CRV1  0.0671   CV3  0.0753   ratio  1.12
  1997   CRV1  0.0618   CV3  0.0713   ratio  1.15
  1998   CRV1  0.0809   CV3  0.0926   ratio  1.14
  1999   CRV1  0.0771   CV3  0.0886   ratio  1.15
  2000   CRV1  0.0463   CV3  0.0509   ratio  1.10
  2001   CRV1  0.0473   CV3  0.0641   ratio  1.36
  2002   CRV1  0.0359   CV3  0.0445   ratio  1.24
  2003   CRV1  0.0134   CV3  0.0164   ratio  1.23
  2004   CRV1  0.0206   CV3  0.0230   ratio  1.12
number of observations will be reset to 1
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 1.
file ThemeE/beta14_tform_CRV1.csv saved
number of observations will be reset to 14
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 14.
file ThemeE/sigma14_tform_CRV1.csv saved
number of observations will be reset to 1
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 1.
file ThemeE/beta14_tform_CV3.csv saved
number of observations will be reset to 14
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 14.
file ThemeE/sigma14_tform_CV3.csv saved

--- tform: normalised gradients theta_k (ref = 1998) ---
  1991   theta =   0.0459
  1992   theta =  -0.0687
  1993   theta =  -0.0708
  1994   theta =  -0.1539
  1995   theta =  -0.1905
  1996   theta =  -0.2353
  1997   theta =  -0.2390
  1999   theta =   0.1058
  2000   theta =   0.4145
  2001   theta =   0.8751
  2002   theta =   1.1481
  2003   theta =   1.2591
  2004   theta =   1.2809

  max |second difference| across untreated cohorts =  0.2427
  Delta^SD grid: 0(.08).48

------------------------------------------------------------------------------
tform | vce = CV3 | target = FULL
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.979 |  1.302 | (Original)
|  0.0000 |  0.978 |  1.304 | 
|  0.2500 |  0.648 |  1.519 | 
|  0.5000 |  0.282 |  1.847 | 
|  0.7500 | -0.094 |  2.209 | 
|  1.0000 | -0.469 |  2.577 | 
|  1.2500 | -0.844 |  2.952 | 
|  1.5000 | -1.218 |  3.330 | 
|  1.7500 | -1.597 |  3.702 | 
|  2.0000 | -1.965 |  4.079 | 
|  2.2500 | -2.340 |  4.450 | 
|  2.5000 | -2.717 |  4.825 | 
|  2.7500 | -3.095 |  5.201 | 
|  3.0000 | -3.469 |  5.575 | 
|  3.2500 | -3.847 |  5.954 | 
|  3.5000 | -4.216 |  6.324 | 
|  3.7500 | -4.539 |  6.696 | (-)
|  4.0000 | -4.808 |  7.078 | (-)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(-) CI is open at lower endpoint; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.979 |  1.302 | (Original)
|  0.0000 |  1.354 |  1.769 | 
|  0.0800 | -1.496 |  1.626 | 
|  0.1600 | -2.536 |  2.666 | 
|  0.2400 | -3.576 |  3.706 | 
|  0.3200 | -4.616 |  4.746 | 
|  0.4000 | -5.656 |  5.786 | 
|  0.4800 | -6.696 |  6.826 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.979 |  1.302 | (Original)
|  0.0000 |  0.978 |  1.304 | 
|  0.2500 |  0.648 |  1.519 | 
|  0.5000 |  0.282 |  1.847 | 
|  0.7500 | -0.094 |  2.209 | 
|  1.0000 | -0.469 |  2.577 | 
|  1.2500 | -0.844 |  2.952 | 
|  1.5000 | -1.218 |  3.330 | 
|  1.7500 | -1.597 |  3.702 | 
|  2.0000 | -1.965 |  4.079 | 
|  2.2500 | -2.340 |  4.450 | 
|  2.5000 | -2.717 |  4.825 | 
|  2.7500 | -3.095 |  5.201 | 
|  3.0000 | -3.469 |  5.575 | 
|  3.2500 | -3.847 |  5.954 | 
|  3.5000 | -4.216 |  6.324 | 
|  3.7500 | -4.539 |  6.696 | (-)
|  4.0000 | -4.808 |  7.078 | (-)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(-) CI is open at lower endpoint; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options
file /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tienes
    IMSS/replication/output/ThemeE/rm_tform_CV3.pdf saved as PDF format
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.979 |  1.302 | (Original)
|  0.0000 |  1.354 |  1.769 | 
|  0.0800 | -1.496 |  1.626 | 
|  0.1600 | -2.536 |  2.666 | 
|  0.2400 | -3.576 |  3.706 | 
|  0.3200 | -4.616 |  4.746 | 
|  0.4000 | -5.656 |  5.786 | 
|  0.4800 | -6.696 |  6.826 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)
file /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tienes
    IMSS/replication/output/ThemeE/sd_tform_CV3.pdf saved as PDF format

------------------------------------------------------------------------------
tform | vce = CV3 | target = FULL2
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.853 |  1.170 | (Original)
|  0.0000 |  0.851 |  1.172 | 
|  0.2500 |  0.604 |  1.328 | 
|  0.5000 |  0.321 |  1.564 | 
|  0.7500 |  0.029 |  1.837 | 
|  1.0000 | -0.259 |  2.125 | 
|  1.2500 | -0.548 |  2.411 | 
|  1.5000 | -0.843 |  2.700 | 
|  1.7500 | -1.133 |  2.995 | 
|  2.0000 | -1.423 |  3.282 | 
|  2.2500 | -1.718 |  3.573 | 
|  2.5000 | -2.007 |  3.867 | 
|  2.7500 | -2.295 |  4.161 | 
|  3.0000 | -2.587 |  4.454 | 
|  3.2500 | -2.883 |  4.741 | 
|  3.5000 | -3.171 |  5.030 | 
|  3.7500 | -3.468 |  5.319 | 
|  4.0000 | -3.754 |  5.618 | 
(method = C-LF, Delta = DeltaRM, alpha = 0.050)

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.853 |  1.170 | (Original)
|  0.0000 |  1.176 |  1.538 | 
|  0.0800 | -0.890 |  1.240 | 
|  0.1600 | -1.530 |  1.880 | 
|  0.2400 | -2.170 |  2.520 | 
|  0.3200 | -2.810 |  3.160 | 
|  0.4000 | -3.450 |  3.800 | 
|  0.4800 | -4.090 |  4.440 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)

------------------------------------------------------------------------------
tform | vce = CV3 | target = PROJ
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.900 |  1.240 | (Original)
|  0.0000 |  0.901 |  1.239 | 
|  0.2500 |  0.585 |  1.440 | 
|  0.5000 |  0.233 |  1.744 | 
|  0.7500 | -0.124 |  2.088 | 
|  1.0000 | -0.485 |  2.442 | 
|  1.2500 | -0.848 |  2.800 | 
|  1.5000 | -1.202 |  3.158 | 
|  1.7500 | -1.565 |  3.521 | 
|  2.0000 | -1.924 |  3.882 | 
|  2.2500 | -2.282 |  4.235 | 
|  2.5000 | -2.642 |  4.600 | 
|  2.7500 | -3.001 |  4.958 | 
|  3.0000 | -3.366 |  5.313 | 
|  3.2500 | -3.725 |  5.672 | 
|  3.5000 | -4.086 |  6.033 | 
|  3.7500 | -4.436 |  6.396 | 
|  4.0000 | -4.795 |  6.759 | (-)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(-) CI is open at lower endpoint; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.900 |  1.240 | (Original)
|  0.0000 |  1.286 |  1.693 | 
|  0.0800 | -1.428 |  1.504 | 
|  0.1600 | -2.382 |  2.458 | 
|  0.2400 | -3.336 |  3.413 | 
|  0.3200 | -4.290 |  4.367 | 
|  0.4000 | -5.245 |  5.321 | 
|  0.4800 | -6.199 |  6.275 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)

------------------------------------------------------------------------------
tform | vce = CRV1 | target = FULL
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.997 |  1.284 | (Original)
|  0.0000 |  0.999 |  1.283 | 
|  0.2500 |  0.670 |  1.507 | 
|  0.5000 |  0.309 |  1.832 | 
|  0.7500 | -0.058 |  2.189 | 
|  1.0000 | -0.423 |  2.557 | 
|  1.2500 | -0.791 |  2.921 | 
|  1.5000 | -1.161 |  3.289 | 
|  1.7500 | -1.530 |  3.657 | 
|  2.0000 | -1.896 |  4.026 | 
|  2.2500 | -2.262 |  4.388 | 
|  2.5000 | -2.631 |  4.754 | 
|  2.7500 | -2.999 |  5.121 | 
|  3.0000 | -3.363 |  5.495 | 
|  3.2500 | -3.731 |  5.863 | 
|  3.5000 | -4.089 |  6.224 | (-)
|  3.7500 | -4.358 |  6.595 | (-)
|  4.0000 | -4.627 |  6.908 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(-) CI is open at lower endpoint; CI length may not be accurate.
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.997 |  1.284 | (Original)
|  0.0000 |  1.360 |  1.730 | 
|  0.0800 | -1.456 |  1.586 | 
|  0.1600 | -2.496 |  2.626 | 
|  0.2400 | -3.536 |  3.666 | 
|  0.3200 | -4.576 |  4.706 | 
|  0.4000 | -5.616 |  5.746 | 
|  0.4800 | -6.656 |  6.786 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)


------------------------------------------------------------------------------
OUTCOME: tpart
------------------------------------------------------------------------------

--- tpart: estimated gradients beta_k ---
  1991   beta =  -0.2598   se =  0.0583
  1992   beta =  -0.2844   se =  0.0658
  1993   beta =  -0.2802   se =  0.0833
  1994   beta =  -0.3871   se =  0.0792
  1995   beta =  -0.3646   se =  0.0730
  1996   beta =  -0.4604   se =  0.0850
  1997   beta =  -0.3898   se =  0.0843
  1998   beta =  -0.3726   se =  0.0846
  1999   beta =  -0.2615   se =  0.1220
  2000   beta =  -0.1348   se =  0.0942
  2001   beta =  -0.0634   se =  0.0718
  2002   beta =   0.0687   se =  0.0654
  2003   beta =   0.1097   se =  0.0445
  2004   beta =   0.1132   se =  0.0425
  untreated band (1991-1998): [ -0.46,  -0.26]
(results grad_tpart are active now)
  CHECK 2 (tpart): equality of untreated gradients F(7,31) =   7.36   p = 0.0000

--- tpart: CRV1 vs CV3 standard errors ---
  1991   CRV1  0.0583   CV3  0.0645   ratio  1.11
  1992   CRV1  0.0658   CV3  0.1026   ratio  1.56
  1993   CRV1  0.0833   CV3  0.1258   ratio  1.51
  1994   CRV1  0.0792   CV3  0.1155   ratio  1.46
  1995   CRV1  0.0730   CV3  0.0908   ratio  1.24
  1996   CRV1  0.0850   CV3  0.1300   ratio  1.53
  1997   CRV1  0.0843   CV3  0.1140   ratio  1.35
  1998   CRV1  0.0846   CV3  0.1028   ratio  1.22
  1999   CRV1  0.1220   CV3  0.1725   ratio  1.41
  2000   CRV1  0.0942   CV3  0.1084   ratio  1.15
  2001   CRV1  0.0718   CV3  0.0834   ratio  1.16
  2002   CRV1  0.0654   CV3  0.0739   ratio  1.13
  2003   CRV1  0.0445   CV3  0.0580   ratio  1.30
  2004   CRV1  0.0425   CV3  0.0523   ratio  1.23
number of observations will be reset to 1
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 1.
file ThemeE/beta14_tpart_CRV1.csv saved
number of observations will be reset to 14
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 14.
file ThemeE/sigma14_tpart_CRV1.csv saved
number of observations will be reset to 1
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 1.
file ThemeE/beta14_tpart_CV3.csv saved
number of observations will be reset to 14
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 14.
file ThemeE/sigma14_tpart_CV3.csv saved

--- tpart: normalised gradients theta_k (ref = 1998) ---
  1991   theta =   0.1128
  1992   theta =   0.0882
  1993   theta =   0.0924
  1994   theta =  -0.0145
  1995   theta =   0.0080
  1996   theta =  -0.0878
  1997   theta =  -0.0172
  1999   theta =   0.1111
  2000   theta =   0.2378
  2001   theta =   0.3093
  2002   theta =   0.4413
  2003   theta =   0.4823
  2004   theta =   0.4858

  max |second difference| across untreated cohorts =  0.1663
  Delta^SD grid: 0(.055).33

------------------------------------------------------------------------------
tpart | vce = CV3 | target = FULL
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.292 |  0.567 | (Original)
|  0.0000 |  0.293 |  0.566 | 
|  0.2500 |  0.156 |  0.755 | 
|  0.5000 | -0.073 |  0.995 | 
|  0.7500 | -0.321 |  1.248 | 
|  1.0000 | -0.573 |  1.500 | 
|  1.2500 | -0.829 |  1.753 | 
|  1.5000 | -1.079 |  2.007 | 
|  1.7500 | -1.336 |  2.258 | 
|  2.0000 | -1.586 |  2.512 | 
|  2.2500 | -1.838 |  2.762 | 
|  2.5000 | -2.094 |  3.016 | 
|  2.7500 | -2.298 |  3.157 | (*)
|  3.0000 | -2.418 |  3.277 | (*)
|  3.2500 | -2.538 |  3.397 | (*)
|  3.5000 | -2.658 |  3.518 | (*)
|  3.7500 | -2.778 |  3.638 | (*)
|  4.0000 | -2.899 |  3.758 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.292 |  0.567 | (Original)
|  0.0000 |  0.157 |  0.552 | 
|  0.0550 | -0.792 |  1.398 | 
|  0.1100 | -1.504 |  2.209 | 
|  0.1650 | -2.219 |  2.924 | 
|  0.2200 | -2.934 |  3.639 | 
|  0.2750 | -3.649 |  4.354 | 
|  0.3300 | -4.364 |  5.069 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.292 |  0.567 | (Original)
|  0.0000 |  0.293 |  0.566 | 
|  0.2500 |  0.156 |  0.755 | 
|  0.5000 | -0.073 |  0.995 | 
|  0.7500 | -0.321 |  1.248 | 
|  1.0000 | -0.573 |  1.500 | 
|  1.2500 | -0.829 |  1.753 | 
|  1.5000 | -1.079 |  2.007 | 
|  1.7500 | -1.336 |  2.258 | 
|  2.0000 | -1.586 |  2.512 | 
|  2.2500 | -1.838 |  2.762 | 
|  2.5000 | -2.094 |  3.016 | 
|  2.7500 | -2.298 |  3.157 | (*)
|  3.0000 | -2.418 |  3.277 | (*)
|  3.2500 | -2.538 |  3.397 | (*)
|  3.5000 | -2.658 |  3.518 | (*)
|  3.7500 | -2.778 |  3.638 | (*)
|  4.0000 | -2.899 |  3.758 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options
file /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tienes
    IMSS/replication/output/ThemeE/rm_tpart_CV3.pdf saved as PDF format
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.292 |  0.567 | (Original)
|  0.0000 |  0.157 |  0.552 | 
|  0.0550 | -0.792 |  1.398 | 
|  0.1100 | -1.504 |  2.209 | 
|  0.1650 | -2.219 |  2.924 | 
|  0.2200 | -2.934 |  3.639 | 
|  0.2750 | -3.649 |  4.354 | 
|  0.3300 | -4.364 |  5.069 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)
file /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tienes
    IMSS/replication/output/ThemeE/sd_tpart_CV3.pdf saved as PDF format

------------------------------------------------------------------------------
tpart | vce = CV3 | target = FULL2
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.243 |  0.507 | (Original)
|  0.0000 |  0.244 |  0.506 | 
|  0.2500 |  0.123 |  0.648 | 
|  0.5000 | -0.013 |  0.831 | 
|  0.7500 | -0.203 |  1.025 | 
|  1.0000 | -0.398 |  1.221 | 
|  1.2500 | -0.597 |  1.416 | 
|  1.5000 | -0.792 |  1.615 | 
|  1.7500 | -0.989 |  1.812 | 
|  2.0000 | -1.187 |  2.005 | 
|  2.2500 | -1.384 |  2.205 | 
|  2.5000 | -1.578 |  2.402 | 
|  2.7500 | -1.777 |  2.594 | 
|  3.0000 | -1.970 |  2.795 | 
|  3.2500 | -2.167 |  2.938 | (+)
|  3.5000 | -2.281 |  3.031 | (*)
|  3.7500 | -2.374 |  3.125 | (*)
|  4.0000 | -2.468 |  3.218 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(+) CI is open at upper endpoint; CI length may not be accurate.
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.243 |  0.507 | (Original)
|  0.0000 |  0.129 |  0.456 | 
|  0.0550 | -0.466 |  1.006 | 
|  0.1100 | -0.898 |  1.528 | 
|  0.1650 | -1.338 |  1.968 | 
|  0.2200 | -1.778 |  2.408 | 
|  0.2750 | -2.218 |  2.848 | 
|  0.3300 | -2.658 |  3.288 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)

------------------------------------------------------------------------------
tpart | vce = CV3 | target = PROJ
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.286 |  0.554 | (Original)
|  0.0000 |  0.287 |  0.553 | 
|  0.2500 |  0.151 |  0.725 | 
|  0.5000 | -0.071 |  0.957 | 
|  0.7500 | -0.309 |  1.194 | 
|  1.0000 | -0.553 |  1.437 | 
|  1.2500 | -0.797 |  1.680 | 
|  1.5000 | -1.038 |  1.924 | 
|  1.7500 | -1.281 |  2.165 | 
|  2.0000 | -1.523 |  2.409 | 
|  2.2500 | -1.765 |  2.649 | 
|  2.5000 | -2.011 |  2.892 | 
|  2.7500 | -2.217 |  3.058 | (*)
|  3.0000 | -2.333 |  3.173 | (*)
|  3.2500 | -2.448 |  3.288 | (*)
|  3.5000 | -2.563 |  3.404 | (*)
|  3.7500 | -2.679 |  3.519 | (*)
|  4.0000 | -2.794 |  3.634 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.286 |  0.554 | (Original)
|  0.0000 |  0.162 |  0.541 | 
|  0.0550 | -0.724 |  1.325 | 
|  0.1100 | -1.383 |  2.075 | 
|  0.1650 | -2.039 |  2.731 | 
|  0.2200 | -2.695 |  3.387 | 
|  0.2750 | -3.351 |  4.043 | 
|  0.3300 | -4.007 |  4.699 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)

------------------------------------------------------------------------------
tpart | vce = CRV1 | target = FULL
------------------------------------------------------------------------------

Delta^RM (relative magnitudes):
Warning: M = 0 with Delta^RM imposes exact parallel trends in the
post-treatment period, even if pre-treatment parallel trends is violated
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.312 |  0.547 | (Original)
|  0.0000 |  0.313 |  0.546 | 
|  0.2500 |  0.180 |  0.693 | 
|  0.5000 |  0.007 |  0.887 | 
|  0.7500 | -0.194 |  1.091 | 
|  1.0000 | -0.397 |  1.293 | 
|  1.2500 | -0.604 |  1.500 | 
|  1.5000 | -0.808 |  1.706 | 
|  1.7500 | -1.016 |  1.912 | 
|  2.0000 | -1.222 |  2.116 | 
|  2.2500 | -1.428 |  2.324 | 
|  2.5000 | -1.632 |  2.530 | 
|  2.7500 | -1.836 |  2.736 | 
|  3.0000 | -2.045 |  2.941 | 
|  3.2500 | -2.251 |  3.144 | 
|  3.5000 | -2.455 |  3.314 | (*)
|  3.7500 | -2.575 |  3.434 | (*)
|  4.0000 | -2.695 |  3.554 | (*)
(method = C-LF, Delta = DeltaRM, alpha = 0.050)
(*) CI is open at both endpoints; CI length may not be accurate.
Try expanding the grid using the grid_lb() and grid_ub() options

Delta^SD (smoothness):
warning: sigma is not a symmetric matrix
|    M    |   lb   |   ub   |
| ------- | ------ | ------ |
|       . |  0.312 |  0.547 | (Original)
|  0.0000 |  0.220 |  0.537 | 
|  0.0550 | -0.792 |  1.303 | 
|  0.1100 | -1.443 |  2.148 | 
|  0.1650 | -2.158 |  2.863 | 
|  0.2200 | -2.873 |  3.578 | 
|  0.2750 | -3.588 |  4.293 | 
|  0.3300 | -4.303 |  5.008 | 
(method = FLCI, Delta = DeltaSD, alpha = 0.050)

. 
. log close diag
      name:  diag
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/Tie
> nes IMSS/replication/output/ThemeE/ThemeE_diagnostics.txt
  log type:  text
 closed on:  20 Aug 2026, 23:33:16
--------------------------------------------------------------------------------------------------------------
