** user=**** ** password=**** ** package=stata ** project=lis #delimit; * Hungary LIS 1999 : Example CAMSIS matching ; * (here to person file, applies equally to household file occ vars); use $hu99p; * Current occ unit (isco88's)=pocc; gen isco88=-999; replace isco88=pocc if (pocc >= 0 ); * Employment status info from both plfs and ptypewk, here use former; gen empst=0; replace empst=1 if (plfs==4); replace empst=2 if (plfs==1); label define stat 0 "Unknown employment status" 1 "Self-employed" 2 "Employee" ; label values empst stat; label variable empst "Employment status"; tab empst psex; * Key indexing variables are isco88 and empst; tabulate empst, summarize(isco88) mean standard freq ; * Check the employed info only ; tabulate empst if (isco88 > 0) , summarize(isco88) mean standard freq ; sort isco88 empst; save cstemp, replace; clear; infile isco88 empst mcam fcam siops isei using $mydata\camsis\cshuis94.dat; summarize; sort isco88 empst; merge isco88 empst using cstemp; gen occinfo=_merge; tab occinfo; drop if (occinfo==1); * (this removes those CAMSIS isco88 by empst values which are not represented in the LES sample); tab occinfo psex; * Current values are within gender; * also can make a cross-gender CAMSIS variable : ; gen cgentcs=-999; replace cgentcs=mcam if (psex==1); replace cgentcs=fcam if (psex==2); summarize isco88 empst cgentcs siops isei ; summarize isco88 empst cgentcs siops isei if pocc > 0; summarize isco88 empst cgentcs siops isei if (pocc > 0 & siops > 0); * Negligible loss of cases - almost all occs get a * camsis and isei/siops score matched to them; ****************************************; * Quick assessment: compare values by an education recode; gen educ=peduc; recode educ 1 2 3=1 4 5=2 6 7 8=3 *=-9; label define edu 1 "Primary or less" 2 "Vocational" 3 "Secondary or higher" ; label values educ edu; label variable educ "education categories"; tab educ ; sort psex; by psex: summarize educ cgentcs siops isei if pocc > 0; by psex: oneway cgentcs educ if (pocc > 0 & educ > 0), tabulate; by psex: oneway siops educ if (pocc > 0 & siops > 0 & educ > 0), tabulate; by psex: oneway isei educ if (pocc > 0 & isei > 0 & educ > 0), tabulate;