* Birth order * To match birth order in the tables, bord must be modified to include multiple births gen border=. forvalues ll=1/5 { replace border=`ll' if (bord==`ll' & b0==0) | (bord==`ll'+1 & b0==2) | (bord==`ll'+2 & b0==3) } gen birth_order=1 if border==1 replace birth_order=2 if border>1 replace birth_order=3 if border>3 replace birth_order=4 if border>5 label variable birth_order "Birth order" label define birth_order 1 "1" 2 "2-3" 3 "4-5" 4 "6+" label values birth_order birth_order