Notes
Variable créée à partir des variables d35_14, d35a_14, d35s_14 et d35m_14
Programme Stata :
local i= 0
foreach var of newlist d35_r1 - d35_r15 {
gen sampled35_`i' = (nbgross_r>=`i'+1) & (d34_`i'==1) // échantillons grossesse i
gen s1= d35a_`i'*365.25
gen s2= d35m_`i'*30.4
gen s3= d35s_`i'*7
egen `var' = rowtotal(s1 s2 s3)
replace `var' = `var'/30.4
replace `var'=round(`var')
replace `var' = 1002 if d35_`i'==6
replace `var' = 1003 if inlist(d35_`i',7,8)
replace `var' = 1004 if sampled35_`i'==0
label value `var' dureallaitgrosslab
tab `var' sampled35_`i', miss
drop sampled35_`i' s1 s2 s3
local i=`i' + 1
}