** user=**** ** password=**** ** package=stata ** project=lis #delimit; * Slovakia LIS 1992 : Example CAMSIS matching ; * (here to person file, applies equally to household file occ vars); use $sk92p; * Current occ unit (isco88 two digit)=pocc; * valid pocc in range > 9 and < 100. * Employment status differences not applicable to Slovakia; gen isco88=-999; replace isco88=pocc if (pocc > 9 & pocc < 100); * Key indexing variables is isco88; tabulate psex if (isco88 > 0) , summarize(isco88) mean standard freq ; sort isco88; save cstemp, replace; clear; infile isco88 mcam fcam siops isei using $mydata\camsis\csskis92.dat; summarize; sort isco88; merge isco88 using cstemp; gen occinfo=_merge; tab occinfo; drop if (occinfo==1); * (this removes any CAMSIS isco88 values not represented in LIS 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 cgentcs ; summarize isco88 cgentcs if (pocc > 9 & pocc < 100) ; ***************************************; * Quick assessment: compare values by an education recode; gen educ=peduc; recode educ 1 7 8=1 2 3 4=2 5 6=3 *=-9; label define edu 1 "Primary or less" 2 "Intermediate" 3 "Late secondary or higher" ; label values educ edu; label variable educ "education categories"; tab educ ; sort psex; by psex: summarize educ cgentcs if (pocc > 9 & pocc < 100 & educ > 0); by psex: oneway cgentcs educ if (pocc > 9 & pocc < 100 & educ > 0), tabulate; *****************************************;