************ ***** Invoked by: bhps_educ_master*.do ************ ******************* ** Data preparation: recoding variables for analytical purposes use $data\bh_xw1.dta, clear datasignature notes * tab zqfedhi recode zqfedhi -9=.m -7=.p 13=.s tab zqfedhi gen educ1=(zqfedhi==1 | zqfedhi==2 | zqfedhi==3 | zqfedhi==4) if !missing(zqfedhi) gen educ2=(zqfedhi==1 | zqfedhi==2 ) if !missing(zqfedhi) label variable educ1 "Degree/diploma: Highest educational qualification categorisation" label variable educ2 "Degree: Highest educational qualification categorisation" tab1 educ1 educ2 * tab zlkmove recode zlkmove -9=.m -7=.p -2=.r tab zlkmove gen loc1 = (zlkmove==2) if !missing(zlkmove) label variable loc1 "Prefer to move: Attitude to moving home" tab loc1 tab zsex gen fem=(zsex==2) tab zage clonevar midage=zage recode midage -9=.m 15/29=.y 51/150=.o tab midage * (Because we suspect that edcuational qualifications are influenced by age, * this gives a conservative measure limiting analysis of age to a given age range) sav $path9\bh_temp.dta, replace