
. local condition_rank_invariance "eta_reg sposato dummy_ed1 dummy_ed4 da1 da2 da3 da4 papapub oretot" // dummy_ed3 

.                         noi di "********************************"
********************************

.                         noi di "`lkdfjlgj'"


.                         noi di "********************************"
********************************

.                         use "${final_data}/dataset_analysis",clear

.                         qui do "${dofiles}/adjusting_sample"    

.                         keep if anno>=2006
(22,998 observations deleted)

.                         qui tab anno,gen(da)

.                         keep if sesso==1
(9,736 observations deleted)

.                         gen uno=1

.                         drop if ${dep}==.
(242 observations deleted)

.                         cumul ${dep} if pub==1,gen(pub1) equal

.                         cumul ${dep} if pub==0,gen(pub0) equal

.                         replace pub0=0 if pub0==.
(2,692 real changes made)

.                         replace pub1=1 if pub1==.
(9,544 real changes made)

.                         keep pub? pub ${dep} `condition_rank_invariance'

.                         gen u=pub1*pub+(1-pub)*pub0

.                         foreach fkihd of local condition_rank_invariance {
  2.                                 gen `fkihd'_d=pub*`fkihd'
  3.                                 local adding_covariate "`adding_covariate' `fkihd'_d"
  4.                                 local testing_procedure "`testing_procedure' `fkihd'_d="
  5.                         }
(4,002 missing values generated)

.                         qui reg u pub `condition_rank_invariance' `adding_covariate'

.                         test `testing_procedure' 0

 ( 1)  eta_reg_d - sposato_d = 0
 ( 2)  eta_reg_d - dummy_ed1_d = 0
 ( 3)  eta_reg_d - dummy_ed4_d = 0
 ( 4)  eta_reg_d - da1_d = 0
 ( 5)  eta_reg_d - da2_d = 0
 ( 6)  eta_reg_d - o.da3_d = 0
 ( 7)  eta_reg_d - da4_d = 0
 ( 8)  eta_reg_d - papapub_d = 0
 ( 9)  eta_reg_d - oretot_d = 0
 (10)  eta_reg_d = 0
       Constraint 10 dropped

       F(  9,  8214) =    1.40
            Prob > F =    0.1821

. log close
      name:  <unnamed>
       log:  /home/user/c155300/public_private_bounds/dofiles_jae/result/bench_rank_invariance_frandsen_lefgren.txt
  log type:  text
 closed on:  13 Aug 2017, 14:09:54
--------------------------------------------------------------------------------------------------------------------------
