====================== Pgm1 ============================= get file="c:\RandHRS\SPSS\rndhrs_h.sav". frequencies var=inw1 inw2 inw3 inw4 inw5 inw6 inw7 inw8 r8iwstat. ===================== Wkshop ============================= get file="c:\RandHRS\SPSS\rndhrs_h.sav" /keep=hhidpn hacohort rahhidpn ragender raracem inw5 to inw8 r6iwstat r7iwstat r8iwstat r6higov r7higov r8higov r6doctor r7doctor r8doctor r6agey_e r7agey_e r8agey_e s6higov s7higov s8higov s6doctor s7doctor s8doctor. select if inw6=1 or inw7=1 or inw8=1. save outfile=" c:\MyPaper\Spss\wkshop.sav" /map. ======================= tab1 =============================== get file="c:\MyPaper\Spss\wkshop.sav". descriptives r6higov r7higov r8higov. crosstabs tables=r8higov by hacohort /tables=r7higov by s7higov /tables=r7higov by r8higov /missing=include. crosstabs tables=r7doctor by r7higov /tables= r8doctor by r8higov /cells=count col. Crosstabs tables=r8doctor by ragender /tables=r8higov by ragender /tables=r8doctor by r8higov by ragender /cells=count col. ======================= mrgtab =============================== match files file="c:\MyPaper\Spss\wkshop.sav" /in=inrnd /file=" c:\RandHRS\SPSS\h04f1a.sav" /in=in04 /file=" c:\RandHRS\SPSS\h06e2ah.sav" /in=in06 /keep=hhidpn rahhidpn hhid pn inw7 inw8 ragender raracem r7iwstat r8iwstat r7higov r8higov r7doctor r8doctor r7agey_e r8agey_e JN152 KN152 /by rahhidpn /map. frequencies var=in04 in06 inw7 inw8. save outfile="c:\MyPaper\Spss\wkplus.sav". select if inw7=1 and inw8=1. frequencies var=jn152 kn152. Crosstab tables=r7higov by r8higov /tables=r7doctor by r8doctor /tables=jn152 by r7doctor /tables=kn152 by r8doctor /cells=count col.