Notes
Variable créée à partir des variables sexe, gf8_r, gf32_r, gf34, gf34m, gf34a, gf34nm et gf34na
Programme Stata :
capture drop date1
gen date1= mdy(gf34m,1,gf34a)
replace date1= mdy(7,1,gf34a) if gf34m==.
format date1 %td
capture drop s1
gen s1 = dateinter - date1
capture drop s2
gen s2 = gf34nm*30.4
capture drop s3
gen s3 = gf34na*365.25
capture drop dureedebcttder
egen dureedebcttder= rowtotal(s1 s2 s3)
replace dureedebcttder=1826 if gf34==6
replace dureedebcttder=1827 if gf34==7
replace dureedebcttder =. if inlist(gf34,8,9)
replace dureedebcttder =. if samplegf34==0
replace dureedebcttder = dureedebcttder/365.25
replace dureedebcttder=. if dureedebcttder==0