. pwd
/Users/robertyaffee/Documents/data/research/chwk/phase3/sociodemog

. use chwide11dec2011master, clear

. save chwide11dec2011masterbkup, replace
(note: file chwide11dec2011masterbkup.dta not found)
file chwide11dec2011masterbkup.dta saved

. di "$user"
Robert Alan Yaffee

. di c(filename)
chwide11dec2011masterbkup.dta

. di c(os)
MacOSX

. di c(osdtl)
10.6.8

. di c(current_date)
16 Dec 2011

. di c(current_time)
21:30:58

.
. di "{hline)"
{hline)

. di "Primary objective: Descriptive multiple responsee analysis of retrospective subjective diagnosis"
Primary objective: Descriptive multiple responsee analysis of retrospective subjective diagnosis

. di "   of past illnesses"
   of past illnesses

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

.
. label define ill862 16 "16 visual and hearing prbs", modify

. label list ill862
ill862:
           1 1. cancer
           2 2. cardiovascular
           3 3. dermatologic
           4 4. endocrine/metabolic
           5 5. gastrointestinal
           6 6. genitourinary
           7 7. hematological
           8 8. infectious
           9 9. musculoskeletal
          10 10. neurological
          11 11. psychiatric
          12 12. peripheral vascular
          13 13. respiratory
          14 14. rheumatologic
          15 15. tumors
          16 16 visual and hearing prbs
          17 17. substance use
          18 18. surgery (of any type)

.
. tab nil1w1

 name of illness 1 in time |
  period from 1977 to 1986 |      Freq.     Percent        Cum.
---------------------------+-----------------------------------
         2. cardiovascular |         30       16.30       16.30
           3. dermatologic |          8        4.35       20.65
    4. endocrine/metabolic |         12        6.52       27.17
       5. gastrointestinal |         23       12.50       39.67
          6. genitourinary |          9        4.89       44.57
          7. hematological |          4        2.17       46.74
             8. infectious |          9        4.89       51.63
        9. musculoskeletal |         13        7.07       58.70
          10. neurological |          7        3.80       62.50
   12. peripheral vascular |          8        4.35       66.85
           13. respiratory |         20       10.87       77.72
         14. rheumatologic |         12        6.52       84.24
16 visual and hearing prbs |          6        3.26       87.50
         17. substance use |          2        1.09       88.59
 18. surgery (of any type) |         21       11.41      100.00
---------------------------+-----------------------------------
                     Total |        184      100.00

.
. mrtab nil1w1-nil9w1, by(gender) row rcol column   ///
>   title(Restrospective subjective diagnosis of Disease 1977 to 1986) poly width(25)

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

    Restrospective subjective |
 diagnosis of Disease 1977 to |  respondent's gender
                         1986 |    1. male   2. female |      Total
------------------------------+------------------------+-----------
  2         2. cardiovascular |         16          23 |         39
                              |      41.03       58.97 |     100.00
                              |      22.22       20.54 |      21.20
                              |      17.58       14.84 |      15.85
------------------------------+------------------------+-----------
  3           3. dermatologic |          5           5 |         10
                              |      50.00       50.00 |     100.00
                              |       6.94        4.46 |       5.43
                              |       5.49        3.23 |       4.07
------------------------------+------------------------+-----------
  4    4. endocrine/metabolic |          4          11 |         15
                              |      26.67       73.33 |     100.00
                              |       5.56        9.82 |       8.15
                              |       4.40        7.10 |       6.10
------------------------------+------------------------+-----------
  5       5. gastrointestinal |         12          16 |         28
                              |      42.86       57.14 |     100.00
                              |      16.67       14.29 |      15.22
                              |      13.19       10.32 |      11.38
------------------------------+------------------------+-----------
  6          6. genitourinary |          3          13 |         16
                              |      18.75       81.25 |     100.00
                              |       4.17       11.61 |       8.70
                              |       3.30        8.39 |       6.50
------------------------------+------------------------+-----------
  7          7. hematological |          1           3 |          4
                              |      25.00       75.00 |     100.00
                              |       1.39        2.68 |       2.17
                              |       1.10        1.94 |       1.63
------------------------------+------------------------+-----------
  8             8. infectious |          5           4 |          9
                              |      55.56       44.44 |     100.00
                              |       6.94        3.57 |       4.89
                              |       5.49        2.58 |       3.66
------------------------------+------------------------+-----------
  9        9. musculoskeletal |         12          12 |         24
                              |      50.00       50.00 |     100.00
                              |      16.67       10.71 |      13.04
                              |      13.19        7.74 |       9.76
------------------------------+------------------------+-----------
 10          10. neurological |          4           7 |         11
                              |      36.36       63.64 |     100.00
                              |       5.56        6.25 |       5.98
                              |       4.40        4.52 |       4.47
------------------------------+------------------------+-----------
 12   12. peripheral vascular |          3           6 |          9
                              |      33.33       66.67 |     100.00
                              |       4.17        5.36 |       4.89
                              |       3.30        3.87 |       3.66
------------------------------+------------------------+-----------
 13           13. respiratory |          8          20 |         28
                              |      28.57       71.43 |     100.00
                              |      11.11       17.86 |      15.22
                              |       8.79       12.90 |      11.38
------------------------------+------------------------+-----------
 14         14. rheumatologic |          1          17 |         18
                              |       5.56       94.44 |     100.00
                              |       1.39       15.18 |       9.78
                              |       1.10       10.97 |       7.32
------------------------------+------------------------+-----------
 15                15. tumors |          1           1 |          2
                              |      50.00       50.00 |     100.00
                              |       1.39        0.89 |       1.09
                              |       1.10        0.65 |       0.81
------------------------------+------------------------+-----------
 16     16 visual and hearing |          3           4 |          7
                         prbs |      42.86       57.14 |     100.00
                              |       4.17        3.57 |       3.80
                              |       3.30        2.58 |       2.85
------------------------------+------------------------+-----------
 17         17. substance use |          2           1 |          3
                              |      66.67       33.33 |     100.00
                              |       2.78        0.89 |       1.63
                              |       2.20        0.65 |       1.22
------------------------------+------------------------+-----------
 18 18. surgery (of any type) |         11          12 |         23
                              |      47.83       52.17 |     100.00
                              |      15.28       10.71 |      12.50
                              |      12.09        7.74 |       9.35
------------------------------+------------------------+-----------
                        Total |         91         155 |        246
                              |      36.99       63.01 |     100.00
                              |     126.39      138.39 |     133.70
                              |     100.00      100.00 |     100.00
                        Cases |         72         112 |        184

Valid cases:        184
Missing cases:      519

.  mrgraph hbar nil1w1-nil9w1 , poly by(gender) include title("Retrospective subjective diagnosis" "1977-1986 disease by gender") ///
>                stat(rcolumn) width(28) caption("155 female responses and 91 male responses" "112 female cases and 72 male cases")  ///
>                bar(1,color(sand)) bar(2, color(olive))

.  graph save disname1.gph, replace
(note: file disname1.gph not found)
(file disname1.gph saved)

.  graph export disname1.eps, replace
(note: file disname1.eps not found)
(file disname1.eps written in EPS format)

.
.
. mrtab nil1w2-nil9w2, by(gender) row rcol column   ///
>   title(Restrospective subjective diagnosis of wave 2 disease) poly width(25)

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

    Restrospective subjective |  respondent's gender
  diagnosis of wave 2 disease |    1. male   2. female |      Total
------------------------------+------------------------+-----------
  1                 1. cancer |          1           0 |          1
                              |     100.00        0.00 |     100.00
                              |       0.83        0.00 |       0.33
                              |       0.56        0.00 |       0.22
------------------------------+------------------------+-----------
  2         2. cardiovascular |         36          51 |         87
                              |      41.38       58.62 |     100.00
                              |      30.00       27.87 |      28.71
                              |      20.34       18.41 |      19.16
------------------------------+------------------------+-----------
  3           3. dermatologic |          4           6 |         10
                              |      40.00       60.00 |     100.00
                              |       3.33        3.28 |       3.30
                              |       2.26        2.17 |       2.20
------------------------------+------------------------+-----------
  4    4. endocrine/metabolic |          3          26 |         29
                              |      10.34       89.66 |     100.00
                              |       2.50       14.21 |       9.57
                              |       1.69        9.39 |       6.39
------------------------------+------------------------+-----------
  5       5. gastrointestinal |         31          38 |         69
                              |      44.93       55.07 |     100.00
                              |      25.83       20.77 |      22.77
                              |      17.51       13.72 |      15.20
------------------------------+------------------------+-----------
  6          6. genitourinary |         17          33 |         50
                              |      34.00       66.00 |     100.00
                              |      14.17       18.03 |      16.50
                              |       9.60       11.91 |      11.01
------------------------------+------------------------+-----------
  7          7. hematological |          3           2 |          5
                              |      60.00       40.00 |     100.00
                              |       2.50        1.09 |       1.65
                              |       1.69        0.72 |       1.10
------------------------------+------------------------+-----------
  8             8. infectious |          3           4 |          7
                              |      42.86       57.14 |     100.00
                              |       2.50        2.19 |       2.31
                              |       1.69        1.44 |       1.54
------------------------------+------------------------+-----------
  9        9. musculoskeletal |         14          21 |         35
                              |      40.00       60.00 |     100.00
                              |      11.67       11.48 |      11.55
                              |       7.91        7.58 |       7.71
------------------------------+------------------------+-----------
 10          10. neurological |         17          21 |         38
                              |      44.74       55.26 |     100.00
                              |      14.17       11.48 |      12.54
                              |       9.60        7.58 |       8.37
------------------------------+------------------------+-----------
 11           11. psychiatric |          1           0 |          1
                              |     100.00        0.00 |     100.00
                              |       0.83        0.00 |       0.33
                              |       0.56        0.00 |       0.22
------------------------------+------------------------+-----------
 12   12. peripheral vascular |          6          11 |         17
                              |      35.29       64.71 |     100.00
                              |       5.00        6.01 |       5.61
                              |       3.39        3.97 |       3.74
------------------------------+------------------------+-----------
 13           13. respiratory |         16          22 |         38
                              |      42.11       57.89 |     100.00
                              |      13.33       12.02 |      12.54
                              |       9.04        7.94 |       8.37
------------------------------+------------------------+-----------
 14         14. rheumatologic |          8           9 |         17
                              |      47.06       52.94 |     100.00
                              |       6.67        4.92 |       5.61
                              |       4.52        3.25 |       3.74
------------------------------+------------------------+-----------
 15                15. tumors |          0           5 |          5
                              |       0.00      100.00 |     100.00
                              |       0.00        2.73 |       1.65
                              |       0.00        1.81 |       1.10
------------------------------+------------------------+-----------
 16     16 visual and hearing |          7           8 |         15
                         prbs |      46.67       53.33 |     100.00
                              |       5.83        4.37 |       4.95
                              |       3.95        2.89 |       3.30
------------------------------+------------------------+-----------
 17         17. substance use |          1           1 |          2
                              |      50.00       50.00 |     100.00
                              |       0.83        0.55 |       0.66
                              |       0.56        0.36 |       0.44
------------------------------+------------------------+-----------
 18 18. surgery (of any type) |          9          19 |         28
                              |      32.14       67.86 |     100.00
                              |       7.50       10.38 |       9.24
                              |       5.08        6.86 |       6.17
------------------------------+------------------------+-----------
                        Total |        177         277 |        454
                              |      38.99       61.01 |     100.00
                              |     147.50      151.37 |     149.83
                              |     100.00      100.00 |     100.00
                        Cases |        120         183 |        303

Valid cases:        303
Missing cases:      400

.  mrgraph hbar nil1w2-nil9w2 , poly by(gender) include title("Retrospective subjective diagnosis" "of wave 2 disease by gender") ///
>                stat(rcolumn) width(28) caption("277 female responses and 177 male responses" "183 female cases and 120 male cases") ///
>                bar(1, color(sand)) bar(2,color(olive))

. graph save disnamew2.gph, replace
(note: file disnamew2.gph not found)
(file disnamew2.gph saved)

. graph export disnamw2.eps, replace
(note: file disnamw2.eps not found)
(file disnamw2.eps written in EPS format)

.
.
.
.
. mrtab nil1w3-nil9w3, by(gender) row rcol column   ///
>   title(Restrospective subjective diagnosis of wave 3 disease by gender) poly width(25)

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

    Restrospective subjective |
  diagnosis of wave 3 disease |  respondent's gender
                    by gender |    1. male   2. female |      Total
------------------------------+------------------------+-----------
  1                 1. cancer |          0           5 |          5
                              |       0.00      100.00 |     100.00
                              |       0.00        1.73 |       0.98
                              |       0.00        0.76 |       0.46
------------------------------+------------------------+-----------
  2         2. cardiovascular |         65         104 |        169
                              |      38.46       61.54 |     100.00
                              |      29.28       35.99 |      33.07
                              |      15.29       15.78 |      15.59
------------------------------+------------------------+-----------
  3           3. dermatologic |         11          11 |         22
                              |      50.00       50.00 |     100.00
                              |       4.95        3.81 |       4.31
                              |       2.59        1.67 |       2.03
------------------------------+------------------------+-----------
  4    4. endocrine/metabolic |         20          46 |         66
                              |      30.30       69.70 |     100.00
                              |       9.01       15.92 |      12.92
                              |       4.71        6.98 |       6.09
------------------------------+------------------------+-----------
  5       5. gastrointestinal |         56          83 |        139
                              |      40.29       59.71 |     100.00
                              |      25.23       28.72 |      27.20
                              |      13.18       12.59 |      12.82
------------------------------+------------------------+-----------
  6          6. genitourinary |         28          66 |         94
                              |      29.79       70.21 |     100.00
                              |      12.61       22.84 |      18.40
                              |       6.59       10.02 |       8.67
------------------------------+------------------------+-----------
  7          7. hematological |          8           8 |         16
                              |      50.00       50.00 |     100.00
                              |       3.60        2.77 |       3.13
                              |       1.88        1.21 |       1.48
------------------------------+------------------------+-----------
  8             8. infectious |         12          11 |         23
                              |      52.17       47.83 |     100.00
                              |       5.41        3.81 |       4.50
                              |       2.82        1.67 |       2.12
------------------------------+------------------------+-----------
  9        9. musculoskeletal |         47          43 |         90
                              |      52.22       47.78 |     100.00
                              |      21.17       14.88 |      17.61
                              |      11.06        6.53 |       8.30
------------------------------+------------------------+-----------
 10          10. neurological |         42          71 |        113
                              |      37.17       62.83 |     100.00
                              |      18.92       24.57 |      22.11
                              |       9.88       10.77 |      10.42
------------------------------+------------------------+-----------
 11           11. psychiatric |          3           1 |          4
                              |      75.00       25.00 |     100.00
                              |       1.35        0.35 |       0.78
                              |       0.71        0.15 |       0.37
------------------------------+------------------------+-----------
 12   12. peripheral vascular |         23          44 |         67
                              |      34.33       65.67 |     100.00
                              |      10.36       15.22 |      13.11
                              |       5.41        6.68 |       6.18
------------------------------+------------------------+-----------
 13           13. respiratory |         32          51 |         83
                              |      38.55       61.45 |     100.00
                              |      14.41       17.65 |      16.24
                              |       7.53        7.74 |       7.66
------------------------------+------------------------+-----------
 14         14. rheumatologic |         30          31 |         61
                              |      49.18       50.82 |     100.00
                              |      13.51       10.73 |      11.94
                              |       7.06        4.70 |       5.63
------------------------------+------------------------+-----------
 15                15. tumors |          1           4 |          5
                              |      20.00       80.00 |     100.00
                              |       0.45        1.38 |       0.98
                              |       0.24        0.61 |       0.46
------------------------------+------------------------+-----------
 16     16 visual and hearing |         24          35 |         59
                         prbs |      40.68       59.32 |     100.00
                              |      10.81       12.11 |      11.55
                              |       5.65        5.31 |       5.44
------------------------------+------------------------+-----------
 17         17. substance use |          2           1 |          3
                              |      66.67       33.33 |     100.00
                              |       0.90        0.35 |       0.59
                              |       0.47        0.15 |       0.28
------------------------------+------------------------+-----------
 18 18. surgery (of any type) |         21          44 |         65
                              |      32.31       67.69 |     100.00
                              |       9.46       15.22 |      12.72
                              |       4.94        6.68 |       6.00
------------------------------+------------------------+-----------
                        Total |        425         659 |       1084
                              |      39.21       60.79 |     100.00
                              |     191.44      228.03 |     212.13
                              |     100.00      100.00 |     100.00
                        Cases |        222         289 |        511

Valid cases:        511
Missing cases:      192

.  mrgraph hbar nil1w3-nil9w3 , poly by(gender) include title("Retrospective subjective diagnosis" "of wave 3 disease by gender") ///
>                stat(rcolumn) width(28) caption("659 female responses and 425 male responses" "289 female cases and 222 male cases") ///
>                bar(1, color(sand)) bar(2,color(olive))

. graph save disnamew3.gph, replace
(note: file disnamew3.gph not found)
(file disnamew3.gph saved)

. graph export disnamw3.eps, replace
(note: file disnamw3.eps not found)
(file disnamw3.eps written in EPS format)

.
.