------------------------------------------------------------------------------------------------------------
      name:  hsum
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/T
> ienes IMSS/Update26/ThemeH/ThemeH_summary.txt
  log type:  text
 opened on:  11 Aug 2026, 18:47:22

. 
. use "`resfile'", clear

. gen stars = ""
(23 missing values generated)

.     replace stars = "*"   if pwcb<0.10
(16 real changes made)

.     replace stars = "**"  if pwcb<0.05
variable stars was str1 now str2
(16 real changes made)

.     replace stars = "***" if pwcb<0.01
variable stars was str2 now str3
(11 real changes made)

. format b se pwcb lo hi %9.3f

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

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

. di as res "THEME H SUMMARY"
THEME H SUMMARY

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

. list block outcome b se pwcb stars lo hi n, sepby(block) noobs abbrev(16)

  +---------------------------------------------------------------------------------+
  |       block   outcome        b      se    pwcb   stars       lo       hi      n |
  |---------------------------------------------------------------------------------|
  |    baseline       emp    0.624   0.082   0.000     ***    0.451    0.833    128 |
  |    baseline      form    0.903   0.090   0.000     ***    0.673    1.162    128 |
  |    baseline       inf   -0.279   0.079   0.015      **   -0.452   -0.069    128 |
  |    baseline        un   -0.035   0.040   0.521           -0.139    0.067    128 |
  |    baseline        np   -0.589   0.089   0.000     ***   -0.811   -0.397    128 |
  |---------------------------------------------------------------------------------|
  |  placebo_ld       emp   -0.100   0.077   0.236           -0.289    0.073    128 |
  |  placebo_ld      form   -0.057   0.099   0.603           -0.293    0.186    128 |
  |  placebo_ld       inf   -0.043   0.075   0.587           -0.228    0.142    128 |
  |  placebo_ld        un   -0.007   0.027   0.842           -0.070    0.067    128 |
  |  placebo_ld        np    0.107   0.070   0.174           -0.055    0.281    128 |
  |---------------------------------------------------------------------------------|
  |  placebo_nc      form    0.122   0.052   0.047      **    0.002    0.247    128 |
  |  placebo_nc       inf   -0.049   0.031   0.137           -0.114    0.018    128 |
  |---------------------------------------------------------------------------------|
  |    cond2013       emp    0.616   0.090   0.000     ***    0.424    0.822    128 |
  |    cond2013      form    0.552   0.186   0.009     ***    0.120    1.042    128 |
  |    cond2013       inf   -0.260   0.090   0.028      **   -0.477   -0.032    128 |
  |---------------------------------------------------------------------------------|
  |  panel_base       emp    0.434   0.040   0.000     ***    0.330    0.526   7168 |
  |  panel_base      form    0.960   0.051   0.000     ***    0.814    1.084   7168 |
  |  panel_base       inf   -0.526   0.038   0.000     ***   -0.623   -0.439   7168 |
  |---------------------------------------------------------------------------------|
  | panel_trend       emp    0.157   0.065   0.033      **    0.016    0.312   7168 |
  | panel_trend      form    0.468   0.054   0.000     ***    0.339    0.589   7168 |
  | panel_trend       inf   -0.311   0.052   0.000     ***   -0.419   -0.189   7168 |
  |---------------------------------------------------------------------------------|
  |    no_south      form    0.915   0.094   0.000     ***    0.689    1.204    116 |
  |    no_south       inf   -0.257   0.077   0.020      **   -0.427   -0.051    116 |
  +---------------------------------------------------------------------------------+

. 
. * automated verdict on the ex-ante rule
. quietly summarize b if block=="placebo_ld" & outcome=="form"

. local pb = r(mean)

. quietly summarize pwcb if block=="placebo_ld" & outcome=="form"

. local pp = r(mean)

. quietly summarize b if block=="cond2013" & outcome=="form"

. local cb = r(mean)

. quietly summarize pwcb if block=="cond2013" & outcome=="form"

. local cp = r(mean)

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

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

. di as res "VERDICT ON THE EX-ANTE RULE"
VERDICT ON THE EX-ANTE RULE

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

. di as txt "  Matched placebo, formal employment:  b = " %6.3f `pb' ///
>     "   WCB p = " %5.3f `pp'
  Matched placebo, formal employment:  b = -0.057   WCB p = 0.603

. di as txt "  Test 1 (p > 0.10):        " cond(`pp'>0.10, "PASS", "FAIL")
  Test 1 (p > 0.10):        PASS

. di as txt "  Test 2 (|b| < 0.22):      " cond(abs(`pb')<0.22, "PASS", "FAIL")
  Test 2 (|b| < 0.22):      PASS

. di as txt "  Conditioned on 2013 gaps: b = " %6.3f `cb' "   WCB p = " %5.3f `cp'
  Conditioned on 2013 gaps: b =  0.552   WCB p = 0.009

. di as txt "  Test 3 (survives, p<.05): " cond(`cp'<0.05, "PASS", "FAIL")
  Test 3 (survives, p<.05): PASS

. di as txt ""


. if `pp'>0.10 & abs(`pb')<0.22 & `cp'<0.05 {
.     di as res "  -> PROMOTE. All three tests pass. Table A.2 moves to Section"
  -> PROMOTE. All three tests pass. Table A.2 moves to Section
.     di as res "     4.3.1; add the population-share placebo row to Table 4 and"
     4.3.1; add the population-share placebo row to Table 4 and
.     di as res "     the conditioned estimate to the A.6 discussion."
     the conditioned estimate to the A.6 discussion.
. }

. else if `pp'<=0.10 | abs(`pb')>=0.22 {
.     di as res "  -> DO NOT PROMOTE. The placebo flank is real. The conditioned"
.     di as res "     estimate (Section 3) is the number to emphasize, and the"
.     di as res "     A.2 discussion needs a caveat regardless of placement."
. }

. else {
.     di as res "  -> MIXED. Placebo passes but the conditioned estimate is weak:"
.     di as res "     the decomposition rests on cross-state persistence. Keep"
.     di as res "     A.2 in the appendix and route claims through Table A.6."
. }

. di as txt ""


. di as txt "  Also check before finalizing:"
  Also check before finalizing:

. di as txt "  - baseline block must match Table A.2 Panel B (0.61/0.90/-0.29)"
  - baseline block must match Table A.2 Panel B (0.61/0.90/-0.29)

. di as txt "  - form + inf coefficients must sum to emp in every block"
  - form + inf coefficients must sum to emp in every block

. di as txt "  - CV3/CRV1 ratios and leave-one-out ranges (Section 5) in the"
  - CV3/CRV1 ratios and leave-one-out ranges (Section 5) in the

. di as txt "    full log, for the table note if promoted"
    full log, for the table note if promoted

. 
. save "ThemeH/ThemeH_results.dta", replace
(file ThemeH/ThemeH_results.dta not found)
file ThemeH/ThemeH_results.dta saved

. log close hsum
      name:  hsum
       log:  /Users/alainpineda/Library/CloudStorage/GoogleDrive-alainpp25@gmail.com/My Drive/PhD/Projects/T
> ienes IMSS/Update26/ThemeH/ThemeH_summary.txt
  log type:  text
 closed on:  11 Aug 2026, 18:47:22
------------------------------------------------------------------------------------------------------------
