** user=**** ** password=**** ** package=stata ** project=lis #delimit; * GERMANY LIS 1989 : STATA Example CAMSIS matching to DE 89 data; use $ge89p; * Current occ unit (isco68 minors)=pocc; * (incomplete) Employment status info from ptypewk only; * Derive employment status variable; tab ptypewk; gen status=ptypewk; recode status 212/233=1 241/243=2 251/253=3 1 111 121 131 141 151 311 321 411 421 431 451 511/543=4 *=9; *recode status 212/233=1 241/243=2 251/253=3 1 111 121 131 141 151 311 321 411 421 431 451 511/543=4 2 112 122 123 113 132 133 142 143 152 312 313 322 323 412 413 422 423 432 433 452 453 =5 *=9; * the latter is an alternative handling of employees; label define stat 1 "Self-Employed, no employees" 2 "Self-Employed, with employees" 3 "Family Assistant" 4 "Public service" 5 "Employee (contract)" 6 "Worker (non-contract)" 9 "Unknown"; label values status stat; label variable status "Employment status"; tab status psex; * Key indexing variable is minbst; gen minbst=-999; replace minbst=pocc*10 + status if (pocc > 0 ); tabulate status if (pocc > 0 ), summarize(minbst) mean standard freq ; * Merge with CAMSIS file using minbst; sort minbst; save cstemp, replace; use minbst hrcs wrcs htcs wtcs siopsm iseim using $mydata\camsis\csdeis89; summarize; sort minbst; merge minbst using cstemp; gen occinfo=_merge; tab occinfo; drop if (occinfo==1); * (this removes those minbst 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=htcs if (psex==1); replace cgentcs=wtcs if (psex==2); gen cgenscs=-999; replace cgenscs=hrcs if (psex==1); replace cgenscs=wrcs if (psex==2); * Check overall distributions; summarize minbst cgentcs cgenscs siopsm iseim ; summarize minbst cgentcs cgenscs siopsm iseim if pocc > 0; summarize minbst cgentcs cgenscs siopsm iseim if (pocc > 0 & siopsm > 0); * note that the last summary shows us that there are quite a lot * of cases with occs but without camsis or isei, also some with * camsis scores but have missing siops scores by the ISMF translation; * Quick assessment: compare values by a German education recode; di "Education"; gen educ=peduc; recode educ 0 1 2=1 3/8=2 9/15=3 *=-9; label define edu 1 "None or low level" 2 "Intermediate" 3 "Higher and/or University"; label values educ edu; label variable educ "Germany education categories"; tab educ ; sort psex; by psex: summarize educ cgentcs cgenscs siopsm iseim if pocc > 0; by psex: oneway cgentcs educ if (pocc > 0), tabulate; by psex: oneway cgenscs educ if (pocc > 0), tabulate; by psex: oneway siopsm educ if (pocc > 0 & siopsm > 0), tabulate; by psex: oneway iseim educ if (pocc > 0 & iseim > 0), tabulate; /* For interest here are the Eta-squared statistics with education from above: Men: CAMSIS title only : 0. CAMSIS title by status : 0. SIOPS : 0. ISEI: 0. Women: CAMSIS title only : 0. CAMSIS title by status : 0. SIOPS : 0. ISEI: 0. */