Project

General

Profile

Support #1988 ยป UserForum_Issue1986.do

 
qui use "$ms/l_indresp", clear
merge 1:1 pidp using "$ms/l_indall", keepus(l_ff_everint) ///
keep(1 3) nogen


generat elig=0

replace elig=1 if ///
inlist(l_indmode,1,2) ///
& (l_jbhas==1|l_jboff==1) ///
& ( (l_ff_ivlolw~=1 & l_ff_everint~=1)|((l_ff_ivlolw==1|l_ff_everint==1) & (l_ff_jbstat<0|l_ff_emplw<0)) )
replace elig=2 if ///
inlist(l_indmode,3) ///
& (l_jbhas==1|l_jboff==1) ///
& ( (l_ff_ivlolw~=1 & l_ff_everint~=1) | ///
((l_ff_ivlolw==1|l_ff_everint==1) & (l_ff_jbstat<0|l_ff_emplw<0)) )

replace elig=3 if ///
inlist(l_indmode,1) & l_iproxy==1 ///
& l_ivfio==2 ///
& (l_jbhas==1|l_jboff==1)

g l_jbbgy_inapp=(inlist(l_jbbgy,-7,-8))
ta l_jbbgy_inapp elig,m

ta l_indmode l_ivfio if elig>0 & l_jbbgy_inapp==1
ta l_indmode l_ivfio if elig==0 & l_jbbgy_inapp~=1




    (1-1/1)