You are on page 1of 2

.

cc chd cat, by (ageg1)

ageg1 | OR [95% Conf. Interval] M-H Weight


-----------------+-------------------------------------------------
0 | 2.452381 .5648169 8.106505 1.407821
(exact)
1 | 2.082432 1.016512 4.27372 5.896414
(exact)
-----------------+-------------------------------------------------
Crude | 2.861483 1.614858 4.987845
(exact)
M-H combined | 2.153736 1.207068 3.84285
-------------------------------------------------------------------
Test of homogeneity (M-H) chi2(1) = 0.06 Pr>chi2 = 0.8079

Test that combined OR = 1:


Mantel-Haenszel chi2(1) = 6.99
Pr>chi2 = 0.0082

. table cat chd, by (ageg1)

----------------------
ageg1 and | chd
cat | 0 1
----------+-----------
0 |
0 | 309 24
1 | 21 4
----------+-----------
1 |
0 | 134 20
1 | 74 23
----------------------

. sort smk

. by smk: tab ageg1 chd,col

----------------------------------------------------------------------
----------------------------------------------------------------------
-------------------------------------------------------------------
-> smk = 0

+-------------------+
| Key |
|-------------------|
| frequency |
| column percentage |
+-------------------+

| chd
ageg1 | 0 1 | Total
-----------+----------------------+----------
0 | 103 4 | 107
| 50.24 23.53 | 48.20
-----------+----------------------+----------
1 | 102 13 | 115
| 49.76 76.47 | 51.80
-----------+----------------------+----------
Total | 205 17 | 222
| 100.00 100.00 | 100.00

----------------------------------------------------------------------
----------------------------------------------------------------------
-------------------------------------------------------------------
-> smk = 1

+-------------------+
| Key |
|-------------------|
| frequency |
| column percentage |
+-------------------+

| chd
ageg1 | 0 1 | Total
-----------+----------------------+----------
0 | 227 24 | 251
| 68.17 44.44 | 64.86
-----------+----------------------+----------
1 | 106 30 | 136
| 31.83 55.56 | 35.14
-----------+----------------------+----------
Total | 333 54 | 387
| 100.00 100.00 | 100.00

You might also like