** user=**** ** password=**** ** package=stata ** project=lis #delimit; * Hungary LIS 1991 : Example CAMSIS matching ; * (here to person file, applies equally to household file occ vars); use $hu91p; * Current occ unit (isco68's)=pocc; gen isco68=-999; replace isco68=pocc if (pocc >= 0 ); * Employment status info from 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 isco68 and empst; tabulate empst, summarise(isco68) mean standard freq ; * Check the employed info only ; tabulate empst if (isco68 > 0) , summarize(isco68) mean standard freq ; sort isco68 empst; save cstemp, replace; clear; infile isco68 empst mcam fcam siops isei using $mydata\camsis\cshuis91.dat; summarize; sort isco68 empst; merge isco68 empst using cstemp; gen occinfo=_merge; tab occinfo; drop if (occinfo==1); * (this removes those CAMSIS isco68 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 isco68 empst cgentcs siops isei ; summarize isco68 empst cgentcs siops isei if pocc > 0; summarize isco68 empst cgentcs siops isei if (pocc > 0 & siops > 0); * Beware quite a high loss of cases - because of the translation * from isco68 to 88 in the index files, a lot of the LIS isco68 * occs are not successfully matched with camsis scores here; *********************************************; * Quick assessment: compare values by an education recode; gen educ=peduc; recode educ 0 1 2 3 4 5=1 6=2 7 8 9=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), tabulate; by psex: oneway siops educ if (pocc > 0 & siops > 0), tabulate; by psex: oneway isei educ if (pocc > 0 & isei > 0), tabulate; ********************************************;