The DHS Program User Forum - RDF feed
https://userforum.dhsprogram.com/index.php
mother's age at last birth born in the past 2 years
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=16654&th=7757#msg_16654
** Last child in the last 2 years;
child_age=(V008-B3); * CHILD'S AGE IN MONTHS;
IF child_age < 24 then do; * ONLY CHILDREN AGED LESS THAN TWO YEARS OLD;
end;
** Mother age at birth;
agemoth = int( (B3-V011)/12 );
if 15 le agemoth lt 18 then mothagec=0; *<18;
else if 18 le agemoth lt 25 then mothagec=1; * 18-24;
else if 25 le agemoth lt 35 then mothagec=2; *25-34;
else if 35 le agemoth le 49 then mothagec=3; *>34;
else mothagec =.;
Also I need to generate birth interval of last birth born in the past 2 years using B11.
I really appreciate your help ]]>Nfadl2019-02-12T22:11:49-00:00