. pwd
C:\users\ry\desktop\chwk\analysis\reports\finalreport\sociodemographic

. di c(filename)
chwideMaster3Dec2011.dta

. di c(os)
Windows

. di c(osdtl)
64-bit

.
.
. set more off

. // gender distribution
.
. tab gender

   respondent's |
        gender  |      Freq.     Percent        Cum.
----------------+-----------------------------------
        1. male |        340       48.36       48.36
      2. female |        363       51.64      100.00
----------------+-----------------------------------
          Total |        703      100.00

.
. di "{hline}"
-------------

.
. di "age distribution"
age distribution

.
. summ age, detail

                      Respondent's age
-------------------------------------------------------------
      Percentiles      Smallest
 1%           30             28
 5%           32             30
10%           35             30       Obs                 703
25%           39             30       Sum of Wgt.         703

50%           50                      Mean            49.7155
                        Largest       Std. Dev.      12.04296
75%           59             79
90%           68             79       Variance       145.0329
95%           70             83       Skewness       .2593853
99%           75             84       Kurtosis        2.16572

.
. // collapsing and simplifying the age gender distribution
. replace agegrp = 0
(702 real changes made)

. replace agegrp = 1 if  age >= 30 & age < 40
(183 real changes made)

. replace agegrp = 2 if  age >= 40 & age < 50
(165 real changes made)

. replace agegrp = 3 if  age >= 50 & age < 60
(189 real changes made)

. replace agegrp = 4 if  age >= 60 & age < 70
(118 real changes made)

. replace agegrp = 5 if  age >= 70 & age < 80
(45 real changes made)

. replace agegrp = 6 if age >=80
(2 real changes made)

. label var agegrp "Age group"

. cap label define ag 0 "Less than 30 yrs"  1 "30 thru 39 yrs" 2 "40 thru 49 yrs" 3 "50 thru 59 yrs" ///
>    4 "60 thru 69 yrs"  5 "70 thru 79 yrs" 6 "80+ yrs"

. cap label values agegrp ag

.
. summ age, detail

                      Respondent's age
-------------------------------------------------------------
      Percentiles      Smallest
 1%           30             28
 5%           32             30
10%           35             30       Obs                 703
25%           39             30       Sum of Wgt.         703

50%           50                      Mean            49.7155
                        Largest       Std. Dev.      12.04296
75%           59             79
90%           68             79       Variance       145.0329
95%           70             83       Skewness       .2593853
99%           75             84       Kurtosis        2.16572

. bysort gender: summ age, detail

-------------
-> gender = 1. male

                      Respondent's age
-------------------------------------------------------------
      Percentiles      Smallest
 1%           30             30
 5%           31             30
10%           34             30       Obs                 340
25%           39             30       Sum of Wgt.         340

50%           48                      Mean           49.18235
                        Largest       Std. Dev.      12.22222
75%           58             74
90%           69             75       Variance       149.3826
95%           70             77       Skewness       .3046038
99%           74             77       Kurtosis       2.062734

-------------
-> gender = 2. female

                      Respondent's age
-------------------------------------------------------------
      Percentiles      Smallest
 1%           30             28
 5%           32             30
10%           35             30       Obs                 363
25%           39             30       Sum of Wgt.         363

50%           51                      Mean           50.21488
                        Largest       Std. Dev.      11.86774
75%           59             79
90%           66             79       Variance       140.8432
95%           70             83       Skewness       .2220652
99%           79             84       Kurtosis       2.282661


. tab agegrp gender, cell row col chi2 lrchi2

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

                 | respondent's gender
       Age group |   1. male  2. female |     Total
-----------------+----------------------+----------
Less than 30 yrs |         0          1 |         1
                 |      0.00     100.00 |    100.00
                 |      0.00       0.28 |      0.14
                 |      0.00       0.14 |      0.14
-----------------+----------------------+----------
    30 to 39 yrs |        93         90 |       183
                 |     50.82      49.18 |    100.00
                 |     27.35      24.79 |     26.03
                 |     13.23      12.80 |     26.03
-----------------+----------------------+----------
    40 to 49 yrs |        86         79 |       165
                 |     52.12      47.88 |    100.00
                 |     25.29      21.76 |     23.47
                 |     12.23      11.24 |     23.47
-----------------+----------------------+----------
    50 to 59 yrs |        83        106 |       189
                 |     43.92      56.08 |    100.00
                 |     24.41      29.20 |     26.88
                 |     11.81      15.08 |     26.88
-----------------+----------------------+----------
     60 - 69 yrs |        54         64 |       118
                 |     45.76      54.24 |    100.00
                 |     15.88      17.63 |     16.79
                 |      7.68       9.10 |     16.79
-----------------+----------------------+----------
       70-79 yrs |        24         21 |        45
                 |     53.33      46.67 |    100.00
                 |      7.06       5.79 |      6.40
                 |      3.41       2.99 |      6.40
-----------------+----------------------+----------
         80+ yrs |         0          2 |         2
                 |      0.00     100.00 |    100.00
                 |      0.00       0.55 |      0.28
                 |      0.00       0.28 |      0.28
-----------------+----------------------+----------
           Total |       340        363 |       703
                 |     48.36      51.64 |    100.00
                 |    100.00     100.00 |    100.00
                 |     48.36      51.64 |    100.00

          Pearson chi2(6) =   6.4470   Pr = 0.375
 likelihood-ratio chi2(6) =   7.6070   Pr = 0.268

.
.
.
. set more off

.
.
.
. tab educ

 highest educational |
level the respondent |
      have completed |      Freq.     Percent        Cum.
---------------------+-----------------------------------
        grade school |          1        0.14        0.14
             HS grad |         36        5.12        5.26
         tech degree |        242       34.42       39.69
        some collage |         38        5.41       45.09
           Bachelors |         97       13.80       58.89
Masters or spec dipl |        281       39.97       98.86
                 PhD |          6        0.85       99.72
                  MD |          2        0.28      100.00
---------------------+-----------------------------------
               Total |        703      100.00

. tab educ gender, cell exp row col all

+--------------------+
| Key                |
+--------------------+
|     frequency      |
| expected frequency |
|   row percentage   |
| column percentage  |
|  cell percentage   |
+--------------------+

 highest educational |
level the respondent | respondent's gender
      have completed |   1. male  2. female |     Total
---------------------+----------------------+----------
        grade school |         0          1 |         1
                     |       0.5        0.5 |       1.0
                     |      0.00     100.00 |    100.00
                     |      0.00       0.28 |      0.14
                     |      0.00       0.14 |      0.14
---------------------+----------------------+----------
             HS grad |        10         26 |        36
                     |      17.4       18.6 |      36.0
                     |     27.78      72.22 |    100.00
                     |      2.94       7.16 |      5.12
                     |      1.42       3.70 |      5.12
---------------------+----------------------+----------
         tech degree |       114        128 |       242
                     |     117.0      125.0 |     242.0
                     |     47.11      52.89 |    100.00
                     |     33.53      35.26 |     34.42
                     |     16.22      18.21 |     34.42
---------------------+----------------------+----------
        some collage |        14         24 |        38
                     |      18.4       19.6 |      38.0
                     |     36.84      63.16 |    100.00
                     |      4.12       6.61 |      5.41
                     |      1.99       3.41 |      5.41
---------------------+----------------------+----------
           Bachelors |        50         47 |        97
                     |      46.9       50.1 |      97.0
                     |     51.55      48.45 |    100.00
                     |     14.71      12.95 |     13.80
                     |      7.11       6.69 |     13.80
---------------------+----------------------+----------
Masters or spec dipl |       146        135 |       281
                     |     135.9      145.1 |     281.0
                     |     51.96      48.04 |    100.00
                     |     42.94      37.19 |     39.97
                     |     20.77      19.20 |     39.97
---------------------+----------------------+----------
                 PhD |         4          2 |         6
                     |       2.9        3.1 |       6.0
                     |     66.67      33.33 |    100.00
                     |      1.18       0.55 |      0.85
                     |      0.57       0.28 |      0.85
---------------------+----------------------+----------
                  MD |         2          0 |         2
                     |       1.0        1.0 |       2.0
                     |    100.00       0.00 |    100.00
                     |      0.59       0.00 |      0.28
                     |      0.28       0.00 |      0.28
---------------------+----------------------+----------
               Total |       340        363 |       703
                     |     340.0      363.0 |     703.0
                     |     48.36      51.64 |    100.00
                     |    100.00     100.00 |    100.00
                     |     48.36      51.64 |    100.00

          Pearson chi2(7) =  14.0052   Pr = 0.051
 likelihood-ratio chi2(7) =  15.4485   Pr = 0.031
               Cramér's V =   0.1411
                    gamma =  -0.1460  ASE = 0.058
          Kendall's tau-b =  -0.0863  ASE = 0.035

.
.
.
.
.
. // geographical locale of residence
.
. cap encode ranow, gen(ranown)

.
. tab oblnow

                 current oblast |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                      5. dontsk |          1        0.14        0.14
                       10. kyiv |        603       85.78       85.92
                   23. zhytomyr |         99       14.08      100.00
--------------------------------+-----------------------------------
                          Total |        703      100.00

. tab oblnow gender, cell row col chi2 lrchi2

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

                      | respondent's gender
       current oblast |   1. male  2. female |     Total
----------------------+----------------------+----------
            5. dontsk |         1          0 |         1
                      |    100.00       0.00 |    100.00
                      |      0.29       0.00 |      0.14
                      |      0.14       0.00 |      0.14
----------------------+----------------------+----------
             10. kyiv |       300        303 |       603
                      |     49.75      50.25 |    100.00
                      |     88.24      83.47 |     85.78
                      |     42.67      43.10 |     85.78
----------------------+----------------------+----------
         23. zhytomyr |        39         60 |        99
                      |     39.39      60.61 |    100.00
                      |     11.47      16.53 |     14.08
                      |      5.55       8.53 |     14.08
----------------------+----------------------+----------
                Total |       340        363 |       703
                      |     48.36      51.64 |    100.00
                      |    100.00     100.00 |    100.00
                      |     48.36      51.64 |    100.00

          Pearson chi2(2) =   4.7220   Pr = 0.094
 likelihood-ratio chi2(2) =   5.1372   Pr = 0.077

. tab ranown gender, cell row col chi2 lrchi2

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

     current raion of | respondent's gender
           residense  |   1. male  2. female |     Total
----------------------+----------------------+----------
        Andrushevskiy |         1          1 |         2
                      |     50.00      50.00 |    100.00
                      |      0.29       0.28 |      0.28
                      |      0.14       0.14 |      0.28
----------------------+----------------------+----------
          Baranovskiy |         2          1 |         3
                      |     66.67      33.33 |    100.00
                      |      0.59       0.28 |      0.43
                      |      0.28       0.14 |      0.43
----------------------+----------------------+----------
         Barishevskiy |         1          3 |         4
                      |     25.00      75.00 |    100.00
                      |      0.29       0.83 |      0.57
                      |      0.14       0.43 |      0.57
----------------------+----------------------+----------
        Berdichevskiy |         4          3 |         7
                      |     57.14      42.86 |    100.00
                      |      1.18       0.83 |      1.00
                      |      0.57       0.43 |      1.00
----------------------+----------------------+----------
     Bilo Tserkovskiy |         3         16 |        19
                      |     15.79      84.21 |    100.00
                      |      0.88       4.41 |      2.70
                      |      0.43       2.28 |      2.70
----------------------+----------------------+----------
         Boguslavskiy |         2          1 |         3
                      |     66.67      33.33 |    100.00
                      |      0.59       0.28 |      0.43
                      |      0.28       0.14 |      0.43
----------------------+----------------------+----------
         Borodyanskiy |         0          3 |         3
                      |      0.00     100.00 |    100.00
                      |      0.00       0.83 |      0.43
                      |      0.00       0.43 |      0.43
----------------------+----------------------+----------
         Boryspilskiy |        11          1 |        12
                      |     91.67       8.33 |    100.00
                      |      3.24       0.28 |      1.71
                      |      1.56       0.14 |      1.71
----------------------+----------------------+----------
           Brovarskiy |         4          8 |        12
                      |     33.33      66.67 |    100.00
                      |      1.18       2.20 |      1.71
                      |      0.57       1.14 |      1.71
----------------------+----------------------+----------
         Brusilovskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
       Chernyahovskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
    Chervonoarmiyskiy |         0          1 |         1
                      |      0.00     100.00 |    100.00
                      |      0.00       0.28 |      0.14
                      |      0.00       0.14 |      0.14
----------------------+----------------------+----------
          Chudnivskiy |         0          3 |         3
                      |      0.00     100.00 |    100.00
                      |      0.00       0.83 |      0.43
                      |      0.00       0.43 |      0.43
----------------------+----------------------+----------
         Emilchinskiy |         0          1 |         1
                      |      0.00     100.00 |    100.00
                      |      0.00       0.28 |      0.14
                      |      0.00       0.14 |      0.14
----------------------+----------------------+----------
           Fastivskiy |         4          2 |         6
                      |     66.67      33.33 |    100.00
                      |      1.18       0.55 |      0.85
                      |      0.57       0.28 |      0.85
----------------------+----------------------+----------
            Irpenskiy |        13          7 |        20
                      |     65.00      35.00 |    100.00
                      |      3.82       1.93 |      2.84
                      |      1.85       1.00 |      2.84
----------------------+----------------------+----------
         Kagarlykskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
         Korostenskiy |         2          4 |         6
                      |     33.33      66.67 |    100.00
                      |      0.59       1.10 |      0.85
                      |      0.28       0.57 |      0.85
----------------------+----------------------+----------
      Korostichevskiy |         0          4 |         4
                      |      0.00     100.00 |    100.00
                      |      0.00       1.10 |      0.57
                      |      0.00       0.57 |      0.57
----------------------+----------------------+----------
 Kyevo-Svyatoshenskiy |         7         14 |        21
                      |     33.33      66.67 |    100.00
                      |      2.06       3.86 |      2.99
                      |      1.00       1.99 |      2.99
----------------------+----------------------+----------
             Kyivskiy |       236        204 |       440
                      |     53.64      46.36 |    100.00
                      |     69.41      56.20 |     62.59
                      |     33.57      29.02 |     62.59
----------------------+----------------------+----------
            Lubarskiy |         1          1 |         2
                      |     50.00      50.00 |    100.00
                      |      0.29       0.28 |      0.28
                      |      0.14       0.14 |      0.28
----------------------+----------------------+----------
            Luginskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
          Makarovskiy |         0          3 |         3
                      |      0.00     100.00 |    100.00
                      |      0.00       0.83 |      0.43
                      |      0.00       0.43 |      0.43
----------------------+----------------------+----------
            Malinskiy |         1          3 |         4
                      |     25.00      75.00 |    100.00
                      |      0.29       0.83 |      0.57
                      |      0.14       0.43 |      0.57
----------------------+----------------------+----------
          Mironivskiy |         2          1 |         3
                      |     66.67      33.33 |    100.00
                      |      0.59       0.28 |      0.43
                      |      0.28       0.14 |      0.43
----------------------+----------------------+----------
       Narodichevskiy |         1          0 |         1
                      |    100.00       0.00 |    100.00
                      |      0.29       0.00 |      0.14
                      |      0.14       0.00 |      0.14
----------------------+----------------------+----------
   Novograd-Volynskiy |         4          4 |         8
                      |     50.00      50.00 |    100.00
                      |      1.18       1.10 |      1.14
                      |      0.57       0.57 |      1.14
----------------------+----------------------+----------
          Obukhovskiy |         2          5 |         7
                      |     28.57      71.43 |    100.00
                      |      0.59       1.38 |      1.00
                      |      0.28       0.71 |      1.00
----------------------+----------------------+----------
             Olevskiy |         1          1 |         2
                      |     50.00      50.00 |    100.00
                      |      0.29       0.28 |      0.28
                      |      0.14       0.14 |      0.28
----------------------+----------------------+----------
           Ovruchskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
Pereyaslav-Khmelnitsk |         1          4 |         5
                      |     20.00      80.00 |    100.00
                      |      0.29       1.10 |      0.71
                      |      0.14       0.57 |      0.71
----------------------+----------------------+----------
            Polesskiy |         0          3 |         3
                      |      0.00     100.00 |    100.00
                      |      0.00       0.83 |      0.43
                      |      0.00       0.43 |      0.43
----------------------+----------------------+----------
        Popelnyanskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
      Radomischevskiy |         3          0 |         3
                      |    100.00       0.00 |    100.00
                      |      0.88       0.00 |      0.43
                      |      0.43       0.00 |      0.43
----------------------+----------------------+----------
         Rakitnetskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
          Romanovskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
           Ruzhinskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
            Skvirskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
       Stavyschenskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
        Taraschenskiy |         0          1 |         1
                      |      0.00     100.00 |    100.00
                      |      0.00       0.28 |      0.14
                      |      0.00       0.14 |      0.14
----------------------+----------------------+----------
         Tarascheskiy |         1          1 |         2
                      |     50.00      50.00 |    100.00
                      |      0.29       0.28 |      0.28
                      |      0.14       0.14 |      0.28
----------------------+----------------------+----------
           Tetievskiy |         2          1 |         3
                      |     66.67      33.33 |    100.00
                      |      0.59       0.28 |      0.43
                      |      0.28       0.14 |      0.43
----------------------+----------------------+----------
         Vasilkivskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
         Vasilkovskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
         Vasylkovskiy |         0          2 |         2
                      |      0.00     100.00 |    100.00
                      |      0.00       0.55 |      0.28
                      |      0.00       0.28 |      0.28
----------------------+----------------------+----------
    Volodar-Volynskiy |         1          2 |         3
                      |     33.33      66.67 |    100.00
                      |      0.29       0.55 |      0.43
                      |      0.14       0.28 |      0.43
----------------------+----------------------+----------
          Volodarskiy |         1          1 |         2
                      |     50.00      50.00 |    100.00
                      |      0.29       0.28 |      0.28
                      |      0.14       0.14 |      0.28
----------------------+----------------------+----------
        Vyshgorodskiy |         1          6 |         7
                      |     14.29      85.71 |    100.00
                      |      0.29       1.65 |      1.00
                      |      0.14       0.85 |      1.00
----------------------+----------------------+----------
          Yagotinskiy |         4          2 |         6
                      |     66.67      33.33 |    100.00
                      |      1.18       0.55 |      0.85
                      |      0.57       0.28 |      0.85
----------------------+----------------------+----------
         Zhitomirskiy |        19         19 |        38
                      |     50.00      50.00 |    100.00
                      |      5.59       5.23 |      5.41
                      |      2.70       2.70 |      5.41
----------------------+----------------------+----------
                Total |       340        363 |       703
                      |     48.36      51.64 |    100.00
                      |    100.00     100.00 |    100.00
                      |     48.36      51.64 |    100.00

         Pearson chi2(50) =  79.4879   Pr = 0.005
likelihood-ratio chi2(50) =  98.3887   Pr = 0.000

.
. // educational background
.
. tab educ

 highest educational |
level the respondent |
      have completed |      Freq.     Percent        Cum.
---------------------+-----------------------------------
        grade school |          1        0.14        0.14
             HS grad |         36        5.12        5.26
         tech degree |        242       34.42       39.69
        some collage |         38        5.41       45.09
           Bachelors |         97       13.80       58.89
Masters or spec dipl |        281       39.97       98.86
                 PhD |          6        0.85       99.72
                  MD |          2        0.28      100.00
---------------------+-----------------------------------
               Total |        703      100.00

. tab educ gender, cell row col chi2 lrchi2

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 highest educational |
level the respondent | respondent's gender
      have completed |   1. male  2. female |     Total
---------------------+----------------------+----------
        grade school |         0          1 |         1
                     |      0.00     100.00 |    100.00
                     |      0.00       0.28 |      0.14
                     |      0.00       0.14 |      0.14
---------------------+----------------------+----------
             HS grad |        10         26 |        36
                     |     27.78      72.22 |    100.00
                     |      2.94       7.16 |      5.12
                     |      1.42       3.70 |      5.12
---------------------+----------------------+----------
         tech degree |       114        128 |       242
                     |     47.11      52.89 |    100.00
                     |     33.53      35.26 |     34.42
                     |     16.22      18.21 |     34.42
---------------------+----------------------+----------
        some collage |        14         24 |        38
                     |     36.84      63.16 |    100.00
                     |      4.12       6.61 |      5.41
                     |      1.99       3.41 |      5.41
---------------------+----------------------+----------
           Bachelors |        50         47 |        97
                     |     51.55      48.45 |    100.00
                     |     14.71      12.95 |     13.80
                     |      7.11       6.69 |     13.80
---------------------+----------------------+----------
Masters or spec dipl |       146        135 |       281
                     |     51.96      48.04 |    100.00
                     |     42.94      37.19 |     39.97
                     |     20.77      19.20 |     39.97
---------------------+----------------------+----------
                 PhD |         4          2 |         6
                     |     66.67      33.33 |    100.00
                     |      1.18       0.55 |      0.85
                     |      0.57       0.28 |      0.85
---------------------+----------------------+----------
                  MD |         2          0 |         2
                     |    100.00       0.00 |    100.00
                     |      0.59       0.00 |      0.28
                     |      0.28       0.00 |      0.28
---------------------+----------------------+----------
               Total |       340        363 |       703
                     |     48.36      51.64 |    100.00
                     |    100.00     100.00 |    100.00
                     |     48.36      51.64 |    100.00

          Pearson chi2(7) =  14.0052   Pr = 0.051
 likelihood-ratio chi2(7) =  15.4485   Pr = 0.031

. tab educ

 highest educational |
level the respondent |
      have completed |      Freq.     Percent        Cum.
---------------------+-----------------------------------
        grade school |          1        0.14        0.14
             HS grad |         36        5.12        5.26
         tech degree |        242       34.42       39.69
        some collage |         38        5.41       45.09
           Bachelors |         97       13.80       58.89
Masters or spec dipl |        281       39.97       98.86
                 PhD |          6        0.85       99.72
                  MD |          2        0.28      100.00
---------------------+-----------------------------------
               Total |        703      100.00

. gr hbar  educ, over(agegrp ) title(Age group by mean level of education)  ///
>    ascategory

. cap label define ed 1 "grade school" 2 "HS grad" 3 "tech degree" 4 "some collage" ///
>    5 "Bachelors" 6 "Masters or spec dipl" 7 "PhD" 8 "MD"

. label values educ ed

.
. // employment
. set more off

. forvalues i=1/3 {
  2. tab emplw`i' gender, cell row col chi2 lrchi2
  3. }

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

        mode of |
  employment in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not answered |         2         12 |        14
                |     14.29      85.71 |    100.00
                |      0.59       3.31 |      1.99
                |      0.28       1.71 |      1.99
----------------+----------------------+----------
   1. full time |       226        255 |       481
                |     46.99      53.01 |    100.00
                |     66.47      70.25 |     68.42
                |     32.15      36.27 |     68.42
----------------+----------------------+----------
   2. part time |        47         17 |        64
                |     73.44      26.56 |    100.00
                |     13.82       4.68 |      9.10
                |      6.69       2.42 |      9.10
----------------+----------------------+----------
   3. voluntary |         1          1 |         2
                |     50.00      50.00 |    100.00
                |      0.29       0.28 |      0.28
                |      0.14       0.14 |      0.28
----------------+----------------------+----------
     4. retired |         1          4 |         5
                |     20.00      80.00 |    100.00
                |      0.29       1.10 |      0.71
                |      0.14       0.57 |      0.71
----------------+----------------------+----------
  5. unemployed |        63         74 |       137
                |     45.99      54.01 |    100.00
                |     18.53      20.39 |     19.49
                |      8.96      10.53 |     19.49
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(5) =  24.9112   Pr = 0.000
 likelihood-ratio chi2(5) =  26.3623   Pr = 0.000

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

        mode of |
  employment in | respondent's gender
           1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not answered |         1          6 |         7
                |     14.29      85.71 |    100.00
                |      0.29       1.65 |      1.00
                |      0.14       0.85 |      1.00
----------------+----------------------+----------
   1. full time |       262        268 |       530
                |     49.43      50.57 |    100.00
                |     77.06      73.83 |     75.39
                |     37.27      38.12 |     75.39
----------------+----------------------+----------
   2. part time |        44         31 |        75
                |     58.67      41.33 |    100.00
                |     12.94       8.54 |     10.67
                |      6.26       4.41 |     10.67
----------------+----------------------+----------
   3. voluntary |         1          1 |         2
                |     50.00      50.00 |    100.00
                |      0.29       0.28 |      0.28
                |      0.14       0.14 |      0.28
----------------+----------------------+----------
     4. retired |        16         28 |        44
                |     36.36      63.64 |    100.00
                |      4.71       7.71 |      6.26
                |      2.28       3.98 |      6.26
----------------+----------------------+----------
  5. unemployed |        16         29 |        45
                |     35.56      64.44 |    100.00
                |      4.71       7.99 |      6.40
                |      2.28       4.13 |      6.40
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(5) =  12.1815   Pr = 0.032
 likelihood-ratio chi2(5) =  12.6667   Pr = 0.027

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

        mode of | respondent's gender
 employment now |   1. male  2. female |     Total
----------------+----------------------+----------
   1. full time |       225        209 |       434
                |     51.84      48.16 |    100.00
                |     66.18      57.58 |     61.74
                |     32.01      29.73 |     61.74
----------------+----------------------+----------
   2. part time |        33         24 |        57
                |     57.89      42.11 |    100.00
                |      9.71       6.61 |      8.11
                |      4.69       3.41 |      8.11
----------------+----------------------+----------
   3. voluntary |         0          1 |         1
                |      0.00     100.00 |    100.00
                |      0.00       0.28 |      0.14
                |      0.00       0.14 |      0.14
----------------+----------------------+----------
     4. retired |        74        101 |       175
                |     42.29      57.71 |    100.00
                |     21.76      27.82 |     24.89
                |     10.53      14.37 |     24.89
----------------+----------------------+----------
  5. unemployed |         8         28 |        36
                |     22.22      77.78 |    100.00
                |      2.35       7.71 |      5.12
                |      1.14       3.98 |      5.12
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(4) =  17.5540   Pr = 0.002
 likelihood-ratio chi2(4) =  18.6008   Pr = 0.001

.
.
. // occupation
.
. set more off

. forvalues i=1/3 {
  2. forvalues j=1/8 {
  3. tab occ`j'w`i' gender, cell row col chi2 lrchi2
  4. }
  5. }

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

        profess |
      executive |
 administration | respondent's gender
        in 1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       275        281 |       556
                |     49.46      50.54 |    100.00
                |     80.88      77.41 |     79.09
                |     39.12      39.97 |     79.09
----------------+----------------------+----------
    1. selected |        65         82 |       147
                |     44.22      55.78 |    100.00
                |     19.12      22.59 |     20.91
                |      9.25      11.66 |     20.91
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   1.2796   Pr = 0.258
 likelihood-ratio chi2(1) =   1.2825   Pr = 0.257

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

technical sales |
  admin support | respondent's gender
        in 1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       284        330 |       614
                |     46.25      53.75 |    100.00
                |     83.53      90.91 |     87.34
                |     40.40      46.94 |     87.34
----------------+----------------------+----------
    1. selected |        56         33 |        89
                |     62.92      37.08 |    100.00
                |     16.47       9.09 |     12.66
                |      7.97       4.69 |     12.66
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   8.6468   Pr = 0.003
 likelihood-ratio chi2(1) =   8.7087   Pr = 0.003

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  service occup |
     protective |
   services  in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       325        332 |       657
                |     49.47      50.53 |    100.00
                |     95.59      91.46 |     93.46
                |     46.23      47.23 |     93.46
----------------+----------------------+----------
    1. selected |        15         31 |        46
                |     32.61      67.39 |    100.00
                |      4.41       8.54 |      6.54
                |      2.13       4.41 |      6.54
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   4.8925   Pr = 0.027
 likelihood-ratio chi2(1) =   5.0052   Pr = 0.025

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 precision prod |
   mechan craft |
   construction | respondent's gender
        in 1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       307        347 |       654
                |     46.94      53.06 |    100.00
                |     90.29      95.59 |     93.03
                |     43.67      49.36 |     93.03
----------------+----------------------+----------
    1. selected |        33         16 |        49
                |     67.35      32.65 |    100.00
                |      9.71       4.41 |      6.97
                |      4.69       2.28 |      6.97
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   7.6001   Pr = 0.006
 likelihood-ratio chi2(1) =   7.7178   Pr = 0.005

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

factory laborer |
      machinist |
 transp cleaner | respondent's gender
        in 1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       328        352 |       680
                |     48.24      51.76 |    100.00
                |     96.47      96.97 |     96.73
                |     46.66      50.07 |     96.73
----------------+----------------------+----------
    1. selected |        12         11 |        23
                |     52.17      47.83 |    100.00
                |      3.53       3.03 |      3.27
                |      1.71       1.56 |      3.27
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   0.1382   Pr = 0.710
 likelihood-ratio chi2(1) =   0.1381   Pr = 0.710

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

farming agricul |
       forestry |
        fishing |
       trapping |
    logging  in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       335        354 |       689
                |     48.62      51.38 |    100.00
                |     98.53      97.52 |     98.01
                |     47.65      50.36 |     98.01
----------------+----------------------+----------
    1. selected |         5          9 |        14
                |     35.71      64.29 |    100.00
                |      1.47       2.48 |      1.99
                |      0.71       1.28 |      1.99
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   0.9153   Pr = 0.339
 likelihood-ratio chi2(1) =   0.9303   Pr = 0.335

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  homemaking or |
 caregiving  in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       336        348 |       684
                |     49.12      50.88 |    100.00
                |     98.82      95.87 |     97.30
                |     47.80      49.50 |     97.30
----------------+----------------------+----------
    1. selected |         4         15 |        19
                |     21.05      78.95 |    100.00
                |      1.18       4.13 |      2.70
                |      0.57       2.13 |      2.70
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   5.8327   Pr = 0.016
 likelihood-ratio chi2(1) =   6.2407   Pr = 0.012

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

    student  in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       211        258 |       469
                |     44.99      55.01 |    100.00
                |     62.06      71.07 |     66.71
                |     30.01      36.70 |     66.71
----------------+----------------------+----------
    1. selected |       129        105 |       234
                |     55.13      44.87 |    100.00
                |     37.94      28.93 |     33.29
                |     18.35      14.94 |     33.29
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   6.4259   Pr = 0.011
 likelihood-ratio chi2(1) =   6.4312   Pr = 0.011

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

        profess |
      executive |
 administration | respondent's gender
        in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       254        242 |       496
                |     51.21      48.79 |    100.00
                |     74.71      66.67 |     70.55
                |     36.13      34.42 |     70.55
----------------+----------------------+----------
    1. selected |        86        121 |       207
                |     41.55      58.45 |    100.00
                |     25.29      33.33 |     29.45
                |     12.23      17.21 |     29.45
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   5.4616   Pr = 0.019
 likelihood-ratio chi2(1) =   5.4841   Pr = 0.019

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

technical sales |
  admin support | respondent's gender
        in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       257        320 |       577
                |     44.54      55.46 |    100.00
                |     75.59      88.15 |     82.08
                |     36.56      45.52 |     82.08
----------------+----------------------+----------
    1. selected |        83         43 |       126
                |     65.87      34.13 |    100.00
                |     24.41      11.85 |     17.92
                |     11.81       6.12 |     17.92
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =  18.8448   Pr = 0.000
 likelihood-ratio chi2(1) =  19.0606   Pr = 0.000

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  service occup |
     protective |
    services in | respondent's gender
           1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       317        315 |       632
                |     50.16      49.84 |    100.00
                |     93.24      86.78 |     89.90
                |     45.09      44.81 |     89.90
----------------+----------------------+----------
    1. selected |        23         48 |        71
                |     32.39      67.61 |    100.00
                |      6.76      13.22 |     10.10
                |      3.27       6.83 |     10.10
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   8.0653   Pr = 0.005
 likelihood-ratio chi2(1) =   8.2481   Pr = 0.004

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 precision prod |
   mechan craft |
construction in | respondent's gender
           1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       298        346 |       644
                |     46.27      53.73 |    100.00
                |     87.65      95.32 |     91.61
                |     42.39      49.22 |     91.61
----------------+----------------------+----------
    1. selected |        42         17 |        59
                |     71.19      28.81 |    100.00
                |     12.35       4.68 |      8.39
                |      5.97       2.42 |      8.39
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =  13.4327   Pr = 0.000
 likelihood-ratio chi2(1) =  13.7638   Pr = 0.000

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

factory laborer |
      machinist |
 transp cleaner | respondent's gender
        in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       319        354 |       673
                |     47.40      52.60 |    100.00
                |     93.82      97.52 |     95.73
                |     45.38      50.36 |     95.73
----------------+----------------------+----------
    1. selected |        21          9 |        30
                |     70.00      30.00 |    100.00
                |      6.18       2.48 |      4.27
                |      2.99       1.28 |      4.27
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   5.8740   Pr = 0.015
 likelihood-ratio chi2(1) =   6.0054   Pr = 0.014

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

farming agricul |
       forestry |
        fishing |
       trapping | respondent's gender
logging in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       335        354 |       689
                |     48.62      51.38 |    100.00
                |     98.53      97.52 |     98.01
                |     47.65      50.36 |     98.01
----------------+----------------------+----------
    1. selected |         5          9 |        14
                |     35.71      64.29 |    100.00
                |      1.47       2.48 |      1.99
                |      0.71       1.28 |      1.99
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   0.9153   Pr = 0.339
 likelihood-ratio chi2(1) =   0.9303   Pr = 0.335

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

     homemaking |
  caregiving in | respondent's gender
           1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       326        330 |       656
                |     49.70      50.30 |    100.00
                |     95.88      90.91 |     93.31
                |     46.37      46.94 |     93.31
----------------+----------------------+----------
    1. selected |        14         33 |        47
                |     29.79      70.21 |    100.00
                |      4.12       9.09 |      6.69
                |      1.99       4.69 |      6.69
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   6.9602   Pr = 0.008
 likelihood-ratio chi2(1) =   7.1768   Pr = 0.007

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

                | respondent's gender
student in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       293        339 |       632
                |     46.36      53.64 |    100.00
                |     86.18      93.39 |     89.90
                |     41.68      48.22 |     89.90
----------------+----------------------+----------
    1. selected |        47         24 |        71
                |     66.20      33.80 |    100.00
                |     13.82       6.61 |     10.10
                |      6.69       3.41 |     10.10
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =  10.0571   Pr = 0.002
 likelihood-ratio chi2(1) =  10.1853   Pr = 0.001

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

   professional |
      executive |
 administration | respondent's gender
            now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       255        259 |       514
                |     49.61      50.39 |    100.00
                |     75.00      71.35 |     73.12
                |     36.27      36.84 |     73.12
----------------+----------------------+----------
    1. selected |        85        104 |       189
                |     44.97      55.03 |    100.00
                |     25.00      28.65 |     26.88
                |     12.09      14.79 |     26.88
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   1.1900   Pr = 0.275
 likelihood-ratio chi2(1) =   1.1918   Pr = 0.275

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

technical sales |
  admin support | respondent's gender
            now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       256        326 |       582
                |     43.99      56.01 |    100.00
                |     75.29      89.81 |     82.79
                |     36.42      46.37 |     82.79
----------------+----------------------+----------
    1. selected |        84         37 |       121
                |     69.42      30.58 |    100.00
                |     24.71      10.19 |     17.21
                |     11.95       5.26 |     17.21
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =  25.9507   Pr = 0.000
 likelihood-ratio chi2(1) =  26.4325   Pr = 0.000

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  service occup |
     protective | respondent's gender
   services now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       314        314 |       628
                |     50.00      50.00 |    100.00
                |     92.35      86.50 |     89.33
                |     44.67      44.67 |     89.33
----------------+----------------------+----------
    1. selected |        26         49 |        75
                |     34.67      65.33 |    100.00
                |      7.65      13.50 |     10.67
                |      3.70       6.97 |     10.67
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   6.3076   Pr = 0.012
 likelihood-ratio chi2(1) =   6.4156   Pr = 0.011

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 precision prod |
   mechan craft |
   construction | respondent's gender
            now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       305        355 |       660
                |     46.21      53.79 |    100.00
                |     89.71      97.80 |     93.88
                |     43.39      50.50 |     93.88
----------------+----------------------+----------
    1. selected |        35          8 |        43
                |     81.40      18.60 |    100.00
                |     10.29       2.20 |      6.12
                |      4.98       1.14 |      6.12
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =  20.0103   Pr = 0.000
 likelihood-ratio chi2(1) =  21.3318   Pr = 0.000

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

factory laborer |
      machinist |
 transp cleaner | respondent's gender
            now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       322        358 |       680
                |     47.35      52.65 |    100.00
                |     94.71      98.62 |     96.73
                |     45.80      50.92 |     96.73
----------------+----------------------+----------
    1. selected |        18          5 |        23
                |     78.26      21.74 |    100.00
                |      5.29       1.38 |      3.27
                |      2.56       0.71 |      3.27
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   8.5103   Pr = 0.004
 likelihood-ratio chi2(1) =   8.9539   Pr = 0.003

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

farming agricul |
       forestry |
        fishing |
       trapping | respondent's gender
    logging now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       336        359 |       695
                |     48.35      51.65 |    100.00
                |     98.82      98.90 |     98.86
                |     47.80      51.07 |     98.86
----------------+----------------------+----------
    1. selected |         4          4 |         8
                |     50.00      50.00 |    100.00
                |      1.18       1.10 |      1.14
                |      0.57       0.57 |      1.14
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   0.0087   Pr = 0.926
 likelihood-ratio chi2(1) =   0.0087   Pr = 0.926

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  homemaking or | respondent's gender
 caregiving now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       270        266 |       536
                |     50.37      49.63 |    100.00
                |     79.41      73.28 |     76.24
                |     38.41      37.84 |     76.24
----------------+----------------------+----------
    1. selected |        70         97 |       167
                |     41.92      58.08 |    100.00
                |     20.59      26.72 |     23.76
                |      9.96      13.80 |     23.76
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   3.6465   Pr = 0.056
 likelihood-ratio chi2(1) =   3.6617   Pr = 0.056

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

                | respondent's gender
    student now |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       340        362 |       702
                |     48.43      51.57 |    100.00
                |    100.00      99.72 |     99.86
                |     48.36      51.49 |     99.86
----------------+----------------------+----------
    1. selected |         0          1 |         1
                |      0.00     100.00 |    100.00
                |      0.00       0.28 |      0.14
                |      0.00       0.14 |      0.14
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(1) =   0.9380   Pr = 0.333
 likelihood-ratio chi2(1) =   1.3232   Pr = 0.250

.
. // average work category
. cap drop sumprof

. cap egen avprof = rowmean(occ1w1 occ1w2 occ1w3)

. cap egen avtech = rowmean(occ2w1 occ2w2 occ2w3)

. cap egen avprot = rowmean(occ3w1 occ3w2 occ3w3)

. cap egen avmech = rowmean(occ4w1 occ4w2 occ4w3)

. cap egen avfactwkr = rowmean(occ5w1 occ5w2 occ5w3)

. cap egen avfrmer = rowmean(occ6w1 occ6w2 occ6w3)

. cap egen avhmkr = rowmean(occ7w1 occ7w2 occ7w3)

. cap egen avstudnt = rowmean(occ8w1 occ8w2 occ8w3)

. mrtab avprof-avstudnt, by(gender) include title("Job classification by gender") width(24)  ///
>    mtest(bonferroni) cell row column lrchi2

+--------------------------+
| Key                      |
+--------------------------+
|  frequency of responses  |
| row percent of responses |
| column percent of cases  |
|  cell percent of cases   |
+--------------------------+

        Job |
classificat |
     ion by |  respondent's gender
     gender |    1. male   2. female |      Total   chi2/p*
------------+------------------------+-----------
     avprof |         37          45 |         82     0.391
            |      45.12       54.88 |     100.00     1.000
            |      10.88       12.40 |      11.66
            |       5.26        6.40 |      11.66
------------+------------------------+-----------
     avtech |         34          15 |         49     9.322
            |      69.39       30.61 |     100.00     0.032
            |      10.00        4.13 |       6.97
            |       4.84        2.13 |       6.97
------------+------------------------+-----------
     avprot |          6          15 |         21     3.396
            |      28.57       71.43 |     100.00     0.915
            |       1.76        4.13 |       2.99
            |       0.85        2.13 |       2.99
------------+------------------------+-----------
     avmech |         14           6 |         20     3.859
            |      70.00       30.00 |     100.00     0.693
            |       4.12        1.65 |       2.84
            |       1.99        0.85 |       2.84
------------+------------------------+-----------
  avfactwkr |          5           2 |          7     1.506
            |      71.43       28.57 |     100.00     1.000
            |       1.47        0.55 |       1.00
            |       0.71        0.28 |       1.00
------------+------------------------+-----------
     avhmkr |          1           8 |          9     5.066
            |      11.11       88.89 |     100.00     0.342
            |       0.29        2.20 |       1.28
            |       0.14        1.14 |       1.28
------------+------------------------+-----------
    student |          0           0 |          0         .
            |          .           . |          .         .
            |       0.00        0.00 |       0.00
            |       0.00        0.00 |       0.00
------------+------------------------+-----------
    sumtech |         29          16 |         45     4.978
            |      64.44       35.56 |     100.00     0.359
            |       8.53        4.41 |       6.40
            |       4.13        2.28 |       6.40
------------+------------------------+-----------
    sumprot |         20          27 |         47     0.681
            |      42.55       57.45 |     100.00     1.000
            |       5.88        7.44 |       6.69
            |       2.84        3.84 |       6.69
------------+------------------------+-----------
    summech |         18           3 |         21    12.092
            |      85.71       14.29 |     100.00     0.007
            |       5.29        0.83 |       2.99
            |       2.56        0.43 |       2.99
------------+------------------------+-----------
 sumfactwkr |         14           7 |         21     2.904
            |      66.67       33.33 |     100.00     1.000
            |       4.12        1.93 |       2.99
            |       1.99        1.00 |       2.99
------------+------------------------+-----------
   sumfrmer |          1           4 |          5     1.622
            |      20.00       80.00 |     100.00     1.000
            |       0.29        1.10 |       0.71
            |       0.14        0.57 |       0.71
------------+------------------------+-----------
    sumhmkr |         59          81 |        140     2.709
            |      42.14       57.86 |     100.00     1.000
            |      17.35       22.31 |      19.91
            |       8.39       11.52 |      19.91
------------+------------------------+-----------
 totstudent |         84          86 |        170     0.099
            |      49.41       50.59 |     100.00     1.000
            |      24.71       23.69 |      24.18
            |      11.95       12.23 |      24.18
------------+------------------------+-----------
    avfrmer |          3           2 |          5     0.273
            |      60.00       40.00 |     100.00     1.000
            |       0.88        0.55 |       0.71
            |       0.43        0.28 |       0.71
------------+------------------------+-----------
   avstudnt |          0           0 |          0         .
            |          .           . |          .         .
            |       0.00        0.00 |       0.00
            |       0.00        0.00 |       0.00
------------+------------------------+-----------
      Total |        325         317 |        642
            |      50.62       49.38 |     100.00
            |      95.59       87.33 |      91.32
            |      46.23       45.09 |      91.32
      Cases |        340         363 |        703

* Pearson chi2(1) / Bonferroni-adjusted p-values

Valid cases:        703
Missing cases:        0

Overall Test(s) of Significance:

likelihood-ratio chi2(38) =  86.3579   Pr = 0.000

.
. // total work involvment
. cap drop sumprof

. cap egen sumprof = rowtotal(occ1w1 occ1w2 occ1w3)

. cap egen sumtech = rowtotal(occ2w1 occ2w2 occ2w3)

. cap egen sumprot = rowtotal(occ3w1 occ3w2 occ3w3)

. cap egen summech = rowtotal(occ4w1 occ4w2 occ4w3)

. cap egen sumfactwkr = rowtotal(occ5w1 occ5w2 occ5w3)

. cap egen sumfrmer = rowtotal(occ6w1 occ6w2 occ6w3)

. cap egen sumhmkr = rowtotal(occ7w1 occ7w2 occ7w3)

. cap egen totstudnt = rowtotal(occ8w1 occ8w2 occ8w3)

. order sumprof sumtech sumprot summech, before(sumfactwkr)

. mrtab sumprof-totstudnt, include title(total Job Classification) width(24)

  total Job |
Classificat |             Percent of     Percent
        ion |  Frequency   responses    of cases
------------+-----------------------------------
    sumprof |         67        9.70        9.53
    sumtech |         45        6.51        6.40
    sumprot |         47        6.80        6.69
    summech |         21        3.04        2.99
 sumfactwkr |         21        3.04        2.99
   sumfrmer |          5        0.72        0.71
    sumhmkr |        140       20.26       19.91
 totstudent |        170       24.60       24.18
    avfrmer |          5        0.72        0.71
   avstudnt |          0        0.00        0.00
  totstudnt |        170       24.60       24.18
------------+-----------------------------------
      Total |        691      100.00       98.29

Valid cases:        703
Missing cases:        0

.
.
. mrtab occ1w1-occ8w1, by(gender) include title(Job classification during wave 1) width(24) ///
>    mtest(bonferroni) cell row column lrchi2

+--------------------------+
| Key                      |
+--------------------------+
|  frequency of responses  |
| row percent of responses |
| column percent of cases  |
|  cell percent of cases   |
+--------------------------+

 Job classification during wave |  respondent's gender
                              1 |    1. male   2. female |      Total   chi2/p*
--------------------------------+------------------------+-----------
occ1w1        profess executive |         65          82 |        147     1.280
         administration in 1986 |      44.22       55.78 |     100.00     1.000
                                |      19.12       22.59 |      20.91
                                |       9.25       11.66 |      20.91
--------------------------------+------------------------+-----------
occ2w1    technical sales admin |         56          33 |         89     8.647
               support  in 1986 |      62.92       37.08 |     100.00     0.026
                                |      16.47        9.09 |      12.66
                                |       7.97        4.69 |      12.66
--------------------------------+------------------------+-----------
occ3w1 service occup protective |         15          31 |         46     4.893
              services  in 1986 |      32.61       67.39 |     100.00     0.216
                                |       4.41        8.54 |       6.54
                                |       2.13        4.41 |       6.54
--------------------------------+------------------------+-----------
occ4w1    precision prod mechan |         33          16 |         49     7.600
         craft construction  in |      67.35       32.65 |     100.00     0.047
                           1986 |       9.71        4.41 |       6.97
                                |       4.69        2.28 |       6.97
--------------------------------+------------------------+-----------
occ5w1          factory laborer |         12          11 |         23     0.138
       machinist transp cleaner |      52.17       47.83 |     100.00     1.000
                        in 1986 |       3.53        3.03 |       3.27
                                |       1.71        1.56 |       3.27
--------------------------------+------------------------+-----------
occ6w1 farming agricul forestry |          5           9 |         14     0.915
       fishing trapping logging |      35.71       64.29 |     100.00     1.000
                        in 1986 |       1.47        2.48 |       1.99
                                |       0.71        1.28 |       1.99
--------------------------------+------------------------+-----------
occ7w1 homemaking or caregiving |          4          15 |         19     5.833
                        in 1986 |      21.05       78.95 |     100.00     0.126
                                |       1.18        4.13 |       2.70
                                |       0.57        2.13 |       2.70
--------------------------------+------------------------+-----------
occ8w1         student  in 1986 |        129         105 |        234     6.426
                                |      55.13       44.87 |     100.00     0.090
                                |      37.94       28.93 |      33.29
                                |      18.35       14.94 |      33.29
--------------------------------+------------------------+-----------
                          Total |        319         302 |        621
                                |      51.37       48.63 |     100.00
                                |      93.82       83.20 |      88.34
                                |      45.38       42.96 |      88.34
                          Cases |        340         363 |        703

* Pearson chi2(1) / Bonferroni-adjusted p-values

Valid cases:        703
Missing cases:        0

Overall Test(s) of Significance:

 likelihood-ratio chi2(8) =  49.7570   Pr = 0.000

.
. mrtab occ1w2-occ8w2, by(gender) include title(Job classification during wave 2) width(24) ///
>    mtest(bonferroni) cell row column lrchi2

+--------------------------+
| Key                      |
+--------------------------+
|  frequency of responses  |
| row percent of responses |
| column percent of cases  |
|  cell percent of cases   |
+--------------------------+

 Job classification during wave |  respondent's gender
                              2 |    1. male   2. female |      Total   chi2/p*
--------------------------------+------------------------+-----------
occ1w2        profess executive |         86         121 |        207     5.462
         administration in 1996 |      41.55       58.45 |     100.00     0.156
                                |      25.29       33.33 |      29.45
                                |      12.23       17.21 |      29.45
--------------------------------+------------------------+-----------
occ2w2    technical sales admin |         83          43 |        126    18.845
                support in 1996 |      65.87       34.13 |     100.00     0.000
                                |      24.41       11.85 |      17.92
                                |      11.81        6.12 |      17.92
--------------------------------+------------------------+-----------
occ3w2 service occup protective |         23          48 |         71     8.065
               services in 1996 |      32.39       67.61 |     100.00     0.036
                                |       6.76       13.22 |      10.10
                                |       3.27        6.83 |      10.10
--------------------------------+------------------------+-----------
occ4w2    precision prod mechan |         42          17 |         59    13.433
          craft construction in |      71.19       28.81 |     100.00     0.002
                           1996 |      12.35        4.68 |       8.39
                                |       5.97        2.42 |       8.39
--------------------------------+------------------------+-----------
occ5w2          factory laborer |         21           9 |         30     5.874
       machinist transp cleaner |      70.00       30.00 |     100.00     0.123
                        in 1996 |       6.18        2.48 |       4.27
                                |       2.99        1.28 |       4.27
--------------------------------+------------------------+-----------
occ6w2 farming agricul forestry |          5           9 |         14     0.915
       fishing trapping logging |      35.71       64.29 |     100.00     1.000
                        in 1996 |       1.47        2.48 |       1.99
                                |       0.71        1.28 |       1.99
--------------------------------+------------------------+-----------
occ7w2 homemaking caregiving in |         14          33 |         47     6.960
                           1996 |      29.79       70.21 |     100.00     0.067
                                |       4.12        9.09 |       6.69
                                |       1.99        4.69 |       6.69
--------------------------------+------------------------+-----------
occ8w2          student in 1996 |         47          24 |         71    10.057
                                |      66.20       33.80 |     100.00     0.012
                                |      13.82        6.61 |      10.10
                                |       6.69        3.41 |      10.10
--------------------------------+------------------------+-----------
                          Total |        321         304 |        625
                                |      51.36       48.64 |     100.00
                                |      94.41       83.75 |      88.90
                                |      45.66       43.24 |      88.90
                          Cases |        340         363 |        703

* Pearson chi2(1) / Bonferroni-adjusted p-values

Valid cases:        703
Missing cases:        0

Overall Test(s) of Significance:

 likelihood-ratio chi2(8) =  81.1547   Pr = 0.000

.
. mrtab occ1w3-occ8w3, by(gender) include title(Job classification during wave 3) width(24) ///
>    mtest(bonferroni) cell row column lrchi2

+--------------------------+
| Key                      |
+--------------------------+
|  frequency of responses  |
| row percent of responses |
| column percent of cases  |
|  cell percent of cases   |
+--------------------------+

 Job classification during wave |  respondent's gender
                              3 |    1. male   2. female |      Total   chi2/p*
--------------------------------+------------------------+-----------
occ1w3   professional executive |         85         104 |        189     1.190
             administration now |      44.97       55.03 |     100.00     1.000
                                |      25.00       28.65 |      26.88
                                |      12.09       14.79 |      26.88
--------------------------------+------------------------+-----------
occ2w3    technical sales admin |         84          37 |        121    25.951
                    support now |      69.42       30.58 |     100.00     0.000
                                |      24.71       10.19 |      17.21
                                |      11.95        5.26 |      17.21
--------------------------------+------------------------+-----------
occ3w3 service occup protective |         26          49 |         75     6.308
                   services now |      34.67       65.33 |     100.00     0.096
                                |       7.65       13.50 |      10.67
                                |       3.70        6.97 |      10.67
--------------------------------+------------------------+-----------
occ4w3    precision prod mechan |         35           8 |         43    20.010
         craft construction now |      81.40       18.60 |     100.00     0.000
                                |      10.29        2.20 |       6.12
                                |       4.98        1.14 |       6.12
--------------------------------+------------------------+-----------
occ5w3          factory laborer |         18           5 |         23     8.510
       machinist transp cleaner |      78.26       21.74 |     100.00     0.028
                            now |       5.29        1.38 |       3.27
                                |       2.56        0.71 |       3.27
--------------------------------+------------------------+-----------
occ6w3 farming agricul forestry |          4           4 |          8     0.009
       fishing trapping logging |      50.00       50.00 |     100.00     1.000
                            now |       1.18        1.10 |       1.14
                                |       0.57        0.57 |       1.14
--------------------------------+------------------------+-----------
occ7w3 homemaking or caregiving |         70          97 |        167     3.647
                            now |      41.92       58.08 |     100.00     0.449
                                |      20.59       26.72 |      23.76
                                |       9.96       13.80 |      23.76
--------------------------------+------------------------+-----------
occ8w3              student now |          0           1 |          1     0.938
                                |       0.00      100.00 |     100.00     1.000
                                |       0.00        0.28 |       0.14
                                |       0.00        0.14 |       0.14
--------------------------------+------------------------+-----------
                          Total |        322         305 |        627
                                |      51.36       48.64 |     100.00
                                |      94.71       84.02 |      89.19
                                |      45.80       43.39 |      89.19
                          Cases |        340         363 |        703

* Pearson chi2(1) / Bonferroni-adjusted p-values

Valid cases:        703
Missing cases:        0

Overall Test(s) of Significance:

 likelihood-ratio chi2(8) =  81.0895   Pr = 0.000

.
.
. // quintiles of job satisfaction
. cap drop jsw1grp

. forvalues i=1/3 {
  2. set more off
  3. cap gen jsw`i'grp = 0 if jsw`i' < 20
  4. replace jsw`i'grp = 1 if jsw`i' >= 20 & jsw`i' < 40
  5. replace jsw`i'grp = 2 if jsw`i' >= 40 & jsw`i' < 60
  6. replace jsw`i'grp = 3 if jsw`i' >=60 & jsw`i' <  80
  7. replace jsw`i'grp = 4 if jsw`i' >=80 & jsw`i' < 101
  8. cap label define jgp`i' 0 "Less than 20%" 1 "20 thru 39%" 2 "40 thru 59%" ///
>    3 "60 thru 79%" 4 "80 thru 100%"
  9. cap label values jsw`i'grp jgp`i'
 10. cap label var jsw`i'grp "Job satisfaction in wave`i'"
 11. }
(16 real changes made)
(51 real changes made)
(52 real changes made)
(380 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)

.
.
. forvalues i=1/3 {
  2. set more off
  3. di "{hline}"
  4. di "{hline 3}" "job satisfaction for all" "{hline 3}"
  5. tab jsw`i'grp
  6. di "{hline 3}" "income sufficiency by gender" "{hline 3}"
  7.
. tab jsw`i'grp gender, cell row col chi2 lrchi2 gamma V taub   ///
>
  8. }
-------------
---job satisfaction for all---

          Job |
 satisfaction |
     in wave1 |      Freq.     Percent        Cum.
--------------+-----------------------------------
Less than 20% |        204       29.02       29.02
  20 thru 39% |         16        2.28       31.29
  40 thru 59% |         51        7.25       38.55
  60 thru 79% |         52        7.40       45.95
 80 thru 100% |        380       54.05      100.00
--------------+-----------------------------------
        Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

          Job |
 satisfaction | respondent's gender
     in wave1 |   1. male  2. female |     Total
--------------+----------------------+----------
Less than 20% |        95        109 |       204
              |     46.57      53.43 |    100.00
              |     27.94      30.03 |     29.02
              |     13.51      15.50 |     29.02
--------------+----------------------+----------
  20 thru 39% |         9          7 |        16
              |     56.25      43.75 |    100.00
              |      2.65       1.93 |      2.28
              |      1.28       1.00 |      2.28
--------------+----------------------+----------
  40 thru 59% |        20         31 |        51
              |     39.22      60.78 |    100.00
              |      5.88       8.54 |      7.25
              |      2.84       4.41 |      7.25
--------------+----------------------+----------
  60 thru 79% |        24         28 |        52
              |     46.15      53.85 |    100.00
              |      7.06       7.71 |      7.40
              |      3.41       3.98 |      7.40
--------------+----------------------+----------
 80 thru 100% |       192        188 |       380
              |     50.53      49.47 |    100.00
              |     56.47      51.79 |     54.05
              |     27.31      26.74 |     54.05
--------------+----------------------+----------
        Total |       340        363 |       703
              |     48.36      51.64 |    100.00
              |    100.00     100.00 |    100.00
              |     48.36      51.64 |    100.00

          Pearson chi2(4) =   3.1840   Pr = 0.528
 likelihood-ratio chi2(4) =   3.2010   Pr = 0.525
               Cramér's V =   0.0673
                    gamma =  -0.0694  ASE = 0.064
          Kendall's tau-b =  -0.0384  ASE = 0.036
-------------
---job satisfaction for all---

          Job |
 satisfaction |
     in wave2 |      Freq.     Percent        Cum.
--------------+-----------------------------------
Less than 20% |        126       17.92       17.92
  20 thru 39% |         16        2.28       20.20
  40 thru 59% |        106       15.08       35.28
  60 thru 79% |         98       13.94       49.22
 80 thru 100% |        357       50.78      100.00
--------------+-----------------------------------
        Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

          Job |
 satisfaction | respondent's gender
     in wave2 |   1. male  2. female |     Total
--------------+----------------------+----------
Less than 20% |        56         70 |       126
              |     44.44      55.56 |    100.00
              |     16.47      19.28 |     17.92
              |      7.97       9.96 |     17.92
--------------+----------------------+----------
  20 thru 39% |        10          6 |        16
              |     62.50      37.50 |    100.00
              |      2.94       1.65 |      2.28
              |      1.42       0.85 |      2.28
--------------+----------------------+----------
  40 thru 59% |        47         59 |       106
              |     44.34      55.66 |    100.00
              |     13.82      16.25 |     15.08
              |      6.69       8.39 |     15.08
--------------+----------------------+----------
  60 thru 79% |        48         50 |        98
              |     48.98      51.02 |    100.00
              |     14.12      13.77 |     13.94
              |      6.83       7.11 |     13.94
--------------+----------------------+----------
 80 thru 100% |       179        178 |       357
              |     50.14      49.86 |    100.00
              |     52.65      49.04 |     50.78
              |     25.46      25.32 |     50.78
--------------+----------------------+----------
        Total |       340        363 |       703
              |     48.36      51.64 |    100.00
              |    100.00     100.00 |    100.00
              |     48.36      51.64 |    100.00

          Pearson chi2(4) =   3.2086   Pr = 0.524
 likelihood-ratio chi2(4) =   3.2219   Pr = 0.521
               Cramér's V =   0.0676
                    gamma =  -0.0647  ASE = 0.060
          Kendall's tau-b =  -0.0374  ASE = 0.035
-------------
---job satisfaction for all---

          Job |
 satisfaction |
     in wave3 |      Freq.     Percent        Cum.
--------------+-----------------------------------
Less than 20% |        198       28.17       28.17
  20 thru 39% |         21        2.99       31.15
  40 thru 59% |         98       13.94       45.09
  60 thru 79% |         81       11.52       56.61
 80 thru 100% |        305       43.39      100.00
--------------+-----------------------------------
        Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

          Job |
 satisfaction | respondent's gender
     in wave3 |   1. male  2. female |     Total
--------------+----------------------+----------
Less than 20% |        80        118 |       198
              |     40.40      59.60 |    100.00
              |     23.53      32.51 |     28.17
              |     11.38      16.79 |     28.17
--------------+----------------------+----------
  20 thru 39% |        14          7 |        21
              |     66.67      33.33 |    100.00
              |      4.12       1.93 |      2.99
              |      1.99       1.00 |      2.99
--------------+----------------------+----------
  40 thru 59% |        46         52 |        98
              |     46.94      53.06 |    100.00
              |     13.53      14.33 |     13.94
              |      6.54       7.40 |     13.94
--------------+----------------------+----------
  60 thru 79% |        47         34 |        81
              |     58.02      41.98 |    100.00
              |     13.82       9.37 |     11.52
              |      6.69       4.84 |     11.52
--------------+----------------------+----------
 80 thru 100% |       153        152 |       305
              |     50.16      49.84 |    100.00
              |     45.00      41.87 |     43.39
              |     21.76      21.62 |     43.39
--------------+----------------------+----------
        Total |       340        363 |       703
              |     48.36      51.64 |    100.00
              |    100.00     100.00 |    100.00
              |     48.36      51.64 |    100.00

          Pearson chi2(4) =  11.3430   Pr = 0.023
 likelihood-ratio chi2(4) =  11.4307   Pr = 0.022
               Cramér's V =   0.1270
                    gamma =  -0.1082  ASE = 0.058
          Kendall's tau-b =  -0.0642  ASE = 0.035

.
.
.
. set more off

.
. forvalues j=1/4 {
  2. forvalues i=1/3 {
  3. di "hline"
  4. di "{hline 3}" "income sufficiency for all" "{hline 3}"
  5. tab inc`j'w`i'
  6. di "{hline 3}" "income sufficiency by gender" "{hline 3}"
  7. tab inc`j'w`i' gender, cell row col exact
  8. di "{hline}"
  9.
.
. }
 10. }
hline
---income sufficiency for all---

  Income is not |
 sufficient for |
          basic |
neccessities in |
          1986  |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        612       87.06       87.06
    1. selected |         91       12.94      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income is not |
 sufficient for |
          basic |
neccessities in | respondent's gender
          1986  |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       292        320 |       612
                |     47.71      52.29 |    100.00
                |     85.88      88.15 |     87.06
                |     41.54      45.52 |     87.06
----------------+----------------------+----------
    1. selected |        48         43 |        91
                |     52.75      47.25 |    100.00
                |     14.12      11.85 |     12.94
                |      6.83       6.12 |     12.94
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.431
   1-sided Fisher's exact =                 0.216
-------------
hline
---income sufficiency for all---

  Income is not |
 sufficient for |
          basic |
neccessities in |
          1996  |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        627       89.19       89.19
    1. selected |         76       10.81      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income is not |
 sufficient for |
          basic |
neccessities in | respondent's gender
          1996  |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       317        310 |       627
                |     50.56      49.44 |    100.00
                |     93.24      85.40 |     89.19
                |     45.09      44.10 |     89.19
----------------+----------------------+----------
    1. selected |        23         53 |        76
                |     30.26      69.74 |    100.00
                |      6.76      14.60 |     10.81
                |      3.27       7.54 |     10.81
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.001
   1-sided Fisher's exact =                 0.001
-------------
hline
---income sufficiency for all---

  Income is not |
 sufficient for |
          basic |
   neccessities |
            NOW |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        605       86.06       86.06
    1. selected |         98       13.94      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income is not |
 sufficient for |
          basic |
   neccessities | respondent's gender
            NOW |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       299        306 |       605
                |     49.42      50.58 |    100.00
                |     87.94      84.30 |     86.06
                |     42.53      43.53 |     86.06
----------------+----------------------+----------
    1. selected |        41         57 |        98
                |     41.84      58.16 |    100.00
                |     12.06      15.70 |     13.94
                |      5.83       8.11 |     13.94
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.191
   1-sided Fisher's exact =                 0.099
-------------
hline
---income sufficiency for all---

 Income is just |
 sufficient for |
          basic |
neccessities in |
           1986 |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        421       59.89       59.89
    1. selected |        282       40.11      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 Income is just |
 sufficient for |
          basic |
neccessities in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       203        218 |       421
                |     48.22      51.78 |    100.00
                |     59.71      60.06 |     59.89
                |     28.88      31.01 |     59.89
----------------+----------------------+----------
    1. selected |       137        145 |       282
                |     48.58      51.42 |    100.00
                |     40.29      39.94 |     40.11
                |     19.49      20.63 |     40.11
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.939
   1-sided Fisher's exact =                 0.493
-------------
hline
---income sufficiency for all---

 Income is just |
 sufficient for |
          basic |
neccessities in |
          1996  |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        394       56.05       56.05
    1. selected |        309       43.95      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 Income is just |
 sufficient for |
          basic |
neccessities in | respondent's gender
          1996  |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       178        216 |       394
                |     45.18      54.82 |    100.00
                |     52.35      59.50 |     56.05
                |     25.32      30.73 |     56.05
----------------+----------------------+----------
    1. selected |       162        147 |       309
                |     52.43      47.57 |    100.00
                |     47.65      40.50 |     43.95
                |     23.04      20.91 |     43.95
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.058
   1-sided Fisher's exact =                 0.033
-------------
hline
---income sufficiency for all---

 Income is just |
 sufficient for |
          basic |
   neccessities |
            NOW |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        407       57.89       57.89
    1. selected |        296       42.11      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 Income is just |
 sufficient for |
          basic |
   neccessities | respondent's gender
            NOW |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       189        218 |       407
                |     46.44      53.56 |    100.00
                |     55.59      60.06 |     57.89
                |     26.88      31.01 |     57.89
----------------+----------------------+----------
    1. selected |       151        145 |       296
                |     51.01      48.99 |    100.00
                |     44.41      39.94 |     42.11
                |     21.48      20.63 |     42.11
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.252
   1-sided Fisher's exact =                 0.131
-------------
hline
---income sufficiency for all---

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin |
     gs in 1986 |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        509       72.40       72.40
    1. selected |        194       27.60      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin | respondent's gender
     gs in 1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       239        270 |       509
                |     46.95      53.05 |    100.00
                |     70.29      74.38 |     72.40
                |     34.00      38.41 |     72.40
----------------+----------------------+----------
    1. selected |       101         93 |       194
                |     52.06      47.94 |    100.00
                |     29.71      25.62 |     27.60
                |     14.37      13.23 |     27.60
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.238
   1-sided Fisher's exact =                 0.130
-------------
hline
---income sufficiency for all---

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin |
     gs in 1996 |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        488       69.42       69.42
    1. selected |        215       30.58      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin | respondent's gender
     gs in 1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       220        268 |       488
                |     45.08      54.92 |    100.00
                |     64.71      73.83 |     69.42
                |     31.29      38.12 |     69.42
----------------+----------------------+----------
    1. selected |       120         95 |       215
                |     55.81      44.19 |    100.00
                |     35.29      26.17 |     30.58
                |     17.07      13.51 |     30.58
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.009
   1-sided Fisher's exact =                 0.006
-------------
hline
---income sufficiency for all---

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin |
         gs NOW |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        498       70.84       70.84
    1. selected |        205       29.16      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

      Income is |
 sufficient for |
    basics plus |
          extra |
purchases/savin | respondent's gender
         gs NOW |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       230        268 |       498
                |     46.18      53.82 |    100.00
                |     67.65      73.83 |     70.84
                |     32.72      38.12 |     70.84
----------------+----------------------+----------
    1. selected |       110         95 |       205
                |     53.66      46.34 |    100.00
                |     32.35      26.17 |     29.16
                |     15.65      13.51 |     29.16
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.081
   1-sided Fisher's exact =                 0.043
-------------
hline
---income sufficiency for all---

  Income allows |
 to comfortably |
  afford luxury |
 items in 1986  |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        655       93.17       93.17
    1. selected |         48        6.83      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income allows |
 to comfortably |
  afford luxury | respondent's gender
 items in 1986  |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       310        345 |       655
                |     47.33      52.67 |    100.00
                |     91.18      95.04 |     93.17
                |     44.10      49.08 |     93.17
----------------+----------------------+----------
    1. selected |        30         18 |        48
                |     62.50      37.50 |    100.00
                |      8.82       4.96 |      6.83
                |      4.27       2.56 |      6.83
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.051
   1-sided Fisher's exact =                 0.030
-------------
hline
---income sufficiency for all---

  Income allows |
 to comfortably |
  afford luxury |
 items in 1996  |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        681       96.87       96.87
    1. selected |         22        3.13      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income allows |
 to comfortably |
  afford luxury | respondent's gender
 items in 1996  |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       327        354 |       681
                |     48.02      51.98 |    100.00
                |     96.18      97.52 |     96.87
                |     46.51      50.36 |     96.87
----------------+----------------------+----------
    1. selected |        13          9 |        22
                |     59.09      40.91 |    100.00
                |      3.82       2.48 |      3.13
                |      1.85       1.28 |      3.13
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.387
   1-sided Fisher's exact =                 0.210
-------------
hline
---income sufficiency for all---

  Income allows |
 to comfortably |
  afford luxury |
      items NOW |      Freq.     Percent        Cum.
----------------+-----------------------------------
0. not selected |        681       96.87       96.87
    1. selected |         22        3.13      100.00
----------------+-----------------------------------
          Total |        703      100.00
---income sufficiency by gender---

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

  Income allows |
 to comfortably |
  afford luxury | respondent's gender
      items NOW |   1. male  2. female |     Total
----------------+----------------------+----------
0. not selected |       326        355 |       681
                |     47.87      52.13 |    100.00
                |     95.88      97.80 |     96.87
                |     46.37      50.50 |     96.87
----------------+----------------------+----------
    1. selected |        14          8 |        22
                |     63.64      36.36 |    100.00
                |      4.12       2.20 |      3.13
                |      1.99       1.14 |      3.13
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

           Fisher's exact =                 0.193
   1-sided Fisher's exact =                 0.107
-------------

.
.
.
.
. // marital status
.  forvalues i=1/3 {
  2. tab marrw`i' gender, cell row col chi2 lrchi2
  3. spineplot marrw`i' gender, percent
  4. gr save spmargen`i'.gph, replace
  5. gr save spmargen`i'.eps, replace
  6. }

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

cohabitation/ma |
rital status in | respondent's gender
           1986 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not answered |         3          6 |         9
                |     33.33      66.67 |    100.00
                |      0.88       1.65 |      1.28
                |      0.43       0.85 |      1.28
----------------+----------------------+----------
      1. single |       168        132 |       300
                |     56.00      44.00 |    100.00
                |     49.41      36.36 |     42.67
                |     23.90      18.78 |     42.67
----------------+----------------------+----------
2. cohabitating |         6          4 |        10
                |     60.00      40.00 |    100.00
                |      1.76       1.10 |      1.42
                |      0.85       0.57 |      1.42
----------------+----------------------+----------
     3. married |       160        208 |       368
                |     43.48      56.52 |    100.00
                |     47.06      57.30 |     52.35
                |     22.76      29.59 |     52.35
----------------+----------------------+----------
   4. separated |         0          3 |         3
                |      0.00     100.00 |    100.00
                |      0.00       0.83 |      0.43
                |      0.00       0.43 |      0.43
----------------+----------------------+----------
    5. divorced |         3          5 |         8
                |     37.50      62.50 |    100.00
                |      0.88       1.38 |      1.14
                |      0.43       0.71 |      1.14
----------------+----------------------+----------
     6. widowed |         0          5 |         5
                |      0.00     100.00 |    100.00
                |      0.00       1.38 |      0.71
                |      0.00       0.71 |      0.71
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(6) =  19.7495   Pr = 0.003
 likelihood-ratio chi2(6) =  22.8744   Pr = 0.001
(file spmargen1.gph saved)
(file spmargen1.eps saved)

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

cohabitation/ma |
rital status in | respondent's gender
           1996 |   1. male  2. female |     Total
----------------+----------------------+----------
0. not answered |         1          0 |         1
                |    100.00       0.00 |    100.00
                |      0.29       0.00 |      0.14
                |      0.14       0.00 |      0.14
----------------+----------------------+----------
      1. single |        96         64 |       160
                |     60.00      40.00 |    100.00
                |     28.24      17.63 |     22.76
                |     13.66       9.10 |     22.76
----------------+----------------------+----------
2. cohabitating |        11          8 |        19
                |     57.89      42.11 |    100.00
                |      3.24       2.20 |      2.70
                |      1.56       1.14 |      2.70
----------------+----------------------+----------
     3. married |       219        262 |       481
                |     45.53      54.47 |    100.00
                |     64.41      72.18 |     68.42
                |     31.15      37.27 |     68.42
----------------+----------------------+----------
   4. separated |         3          1 |         4
                |     75.00      25.00 |    100.00
                |      0.88       0.28 |      0.57
                |      0.43       0.14 |      0.57
----------------+----------------------+----------
    5. divorced |         6         11 |        17
                |     35.29      64.71 |    100.00
                |      1.76       3.03 |      2.42
                |      0.85       1.56 |      2.42
----------------+----------------------+----------
     6. widowed |         4         17 |        21
                |     19.05      80.95 |    100.00
                |      1.18       4.68 |      2.99
                |      0.57       2.42 |      2.99
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(6) =  21.5065   Pr = 0.001
 likelihood-ratio chi2(6) =  22.6028   Pr = 0.001
(file spmargen2.gph saved)
(file spmargen2.eps saved)

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

cohabitation/ma |
   rital status | respondent's gender
            now |   1. male  2. female |     Total
----------------+----------------------+----------
      1. single |        36         28 |        64
                |     56.25      43.75 |    100.00
                |     10.59       7.71 |      9.10
                |      5.12       3.98 |      9.10
----------------+----------------------+----------
2. cohabitating |        24          8 |        32
                |     75.00      25.00 |    100.00
                |      7.06       2.20 |      4.55
                |      3.41       1.14 |      4.55
----------------+----------------------+----------
     3. married |       244        245 |       489
                |     49.90      50.10 |    100.00
                |     71.76      67.49 |     69.56
                |     34.71      34.85 |     69.56
----------------+----------------------+----------
   4. separated |         0          8 |         8
                |      0.00     100.00 |    100.00
                |      0.00       2.20 |      1.14
                |      0.00       1.14 |      1.14
----------------+----------------------+----------
    5. divorced |        23         26 |        49
                |     46.94      53.06 |    100.00
                |      6.76       7.16 |      6.97
                |      3.27       3.70 |      6.97
----------------+----------------------+----------
     6. widowed |        13         48 |        61
                |     21.31      78.69 |    100.00
                |      3.82      13.22 |      8.68
                |      1.85       6.83 |      8.68
----------------+----------------------+----------
          Total |       340        363 |       703
                |     48.36      51.64 |    100.00
                |    100.00     100.00 |    100.00
                |     48.36      51.64 |    100.00

          Pearson chi2(5) =  36.5543   Pr = 0.000
 likelihood-ratio chi2(5) =  41.2595   Pr = 0.000
(file spmargen3.gph saved)
(file spmargen3.eps saved)

.
.
.
.
. // # children
.
. forvalues i=1/3 {
  2. tab childw`i'
  3. tab childw`i' gender, cell row col chi2 lrchi2 gamma taub
  4. spineplot childw`i' gender, percent
  5. gr save spchldgen`i'.gph, replace
  6. gr save spchldgen`i'.eps, replace
  7. }

  number of |
children in |
       1986 |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        339       48.43       48.43
          1 |        157       22.43       70.86
          2 |        184       26.29       97.14
          3 |         18        2.57       99.71
          4 |          1        0.14       99.86
          5 |          1        0.14      100.00
------------+-----------------------------------
      Total |        700      100.00

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 number of |
  children | respondent's gender
   in 1986 |   1. male  2. female |     Total
-----------+----------------------+----------
         0 |       184        155 |       339
           |     54.28      45.72 |    100.00
           |     54.28      42.94 |     48.43
           |     26.29      22.14 |     48.43
-----------+----------------------+----------
         1 |        62         95 |       157
           |     39.49      60.51 |    100.00
           |     18.29      26.32 |     22.43
           |      8.86      13.57 |     22.43
-----------+----------------------+----------
         2 |        87         97 |       184
           |     47.28      52.72 |    100.00
           |     25.66      26.87 |     26.29
           |     12.43      13.86 |     26.29
-----------+----------------------+----------
         3 |         6         12 |        18
           |     33.33      66.67 |    100.00
           |      1.77       3.32 |      2.57
           |      0.86       1.71 |      2.57
-----------+----------------------+----------
         4 |         0          1 |         1
           |      0.00     100.00 |    100.00
           |      0.00       0.28 |      0.14
           |      0.00       0.14 |      0.14
-----------+----------------------+----------
         5 |         0          1 |         1
           |      0.00     100.00 |    100.00
           |      0.00       0.28 |      0.14
           |      0.00       0.14 |      0.14
-----------+----------------------+----------
     Total |       339        361 |       700
           |     48.43      51.57 |    100.00
           |    100.00     100.00 |    100.00
           |     48.43      51.57 |    100.00

          Pearson chi2(5) =  13.2823   Pr = 0.021
 likelihood-ratio chi2(5) =  14.1357   Pr = 0.015
                    gamma =   0.1582  ASE = 0.061
          Kendall's tau-b =   0.0904  ASE = 0.035
(file spchldgen1.gph saved)
(file spchldgen1.eps saved)

  number of |
children in |
       1996 |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        202       28.73       28.73
          1 |        228       32.43       61.17
          2 |        248       35.28       96.44
          3 |         22        3.13       99.57
          4 |          2        0.28       99.86
          5 |          1        0.14      100.00
------------+-----------------------------------
      Total |        703      100.00

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 number of |
  children | respondent's gender
   in 1996 |   1. male  2. female |     Total
-----------+----------------------+----------
         0 |       120         82 |       202
           |     59.41      40.59 |    100.00
           |     35.29      22.59 |     28.73
           |     17.07      11.66 |     28.73
-----------+----------------------+----------
         1 |       101        127 |       228
           |     44.30      55.70 |    100.00
           |     29.71      34.99 |     32.43
           |     14.37      18.07 |     32.43
-----------+----------------------+----------
         2 |       110        138 |       248
           |     44.35      55.65 |    100.00
           |     32.35      38.02 |     35.28
           |     15.65      19.63 |     35.28
-----------+----------------------+----------
         3 |         8         14 |        22
           |     36.36      63.64 |    100.00
           |      2.35       3.86 |      3.13
           |      1.14       1.99 |      3.13
-----------+----------------------+----------
         4 |         1          1 |         2
           |     50.00      50.00 |    100.00
           |      0.29       0.28 |      0.28
           |      0.14       0.14 |      0.28
-----------+----------------------+----------
         5 |         0          1 |         1
           |      0.00     100.00 |    100.00
           |      0.00       0.28 |      0.14
           |      0.00       0.14 |      0.14
-----------+----------------------+----------
     Total |       340        363 |       703
           |     48.36      51.64 |    100.00
           |    100.00     100.00 |    100.00
           |     48.36      51.64 |    100.00

          Pearson chi2(5) =  15.1748   Pr = 0.010
 likelihood-ratio chi2(5) =  15.6216   Pr = 0.008
                    gamma =   0.1947  ASE = 0.058
          Kendall's tau-b =   0.1150  ASE = 0.035
(file spchldgen2.gph saved)
(file spchldgen2.eps saved)

  number of |
   children |
       now  |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        109       15.50       15.50
          1 |        254       36.13       51.64
          2 |        301       42.82       94.45
          3 |         35        4.98       99.43
          4 |          3        0.43       99.86
          5 |          1        0.14      100.00
------------+-----------------------------------
      Total |        703      100.00

+-------------------+
| Key               |
+-------------------+
|     frequency     |
|  row percentage   |
| column percentage |
|  cell percentage  |
+-------------------+

 number of |
  children | respondent's gender
      now  |   1. male  2. female |     Total
-----------+----------------------+----------
         0 |        63         46 |       109
           |     57.80      42.20 |    100.00
           |     18.53      12.67 |     15.50
           |      8.96       6.54 |     15.50
-----------+----------------------+----------
         1 |       123        131 |       254
           |     48.43      51.57 |    100.00
           |     36.18      36.09 |     36.13
           |     17.50      18.63 |     36.13
-----------+----------------------+----------
         2 |       135        166 |       301
           |     44.85      55.15 |    100.00
           |     39.71      45.73 |     42.82
           |     19.20      23.61 |     42.82
-----------+----------------------+----------
         3 |        18         17 |        35
           |     51.43      48.57 |    100.00
           |      5.29       4.68 |      4.98
           |      2.56       2.42 |      4.98
-----------+----------------------+----------
         4 |         1          2 |         3
           |     33.33      66.67 |    100.00
           |      0.29       0.55 |      0.43
           |      0.14       0.28 |      0.43
-----------+----------------------+----------
         5 |         0          1 |         1
           |      0.00     100.00 |    100.00
           |      0.00       0.28 |      0.14
           |      0.00       0.14 |      0.14
-----------+----------------------+----------
     Total |       340        363 |       703
           |     48.36      51.64 |    100.00
           |    100.00     100.00 |    100.00
           |     48.36      51.64 |    100.00

          Pearson chi2(5) =   6.7126   Pr = 0.243
 likelihood-ratio chi2(5) =   7.1146   Pr = 0.212
                    gamma =   0.1165  ASE = 0.061
          Kendall's tau-b =   0.0671  ASE = 0.035
(file spchldgen3.gph saved)
(file spchldgen3.eps saved)

.
. //followup compare with census data for KZ
.