use emp2a, clear gen polint=v13a recode polint 1 2=1 3/5=2 lab def int 1"stark" 2"geringer" lab val polint int tab v13a polint more gen alter=2000-v110 replace alter=1 if alter<40 replace alter=2 if alter>39 & alter~=. label def age 1"unter 40" 2"ab 40" label val alter age tab alter more tab polint alter , col all more tabulate v113 more tabulate v113, nol more gen bildung=v113 recode bildung 1 2 12=1 3=2 4 5 6 10 11=3 7 8=4 9=. label def edu 1 "max. HS" 2"mittl. Reife" 3"(Fach) Abi" 4"Studium" label val bildung edu tab v113 bildung more tab polint bildung , col all more sort bildung by bildung: tab polint alter , col all more