What is the best way to show the difference between observed and expected in graphic form? I USE the code istdize...
-
Login or Register
- Log in with
* Example generated by -dataex-. To install: ssc install dataex clear input byte Regione str5 Age_class long POP int(VAR1 VAR2) byte VAR3 int VAR4 1 "0-17" 280836 69 30 0 7 1 "18-25" 136905 45 27 5 8 2 "0-17" 3019494 520 197 1 69 2 "18-25" 1622964 76 89 5 37 3 "0-17" 2086140 426 150 5 74 3 "18-25" 971445 115 265 23 40 4 "0-17" 2739450 677 222 5 111 4 "18-25" 1302687 105 209 10 23 5 "0-17" 1643196 359 204 3 37 5 "18-25" 790824 67 198 13 20 6 "0-17" 58668 12 5 0 2 6 "18-25" 28338 2 11 4 0 7 "0-17" 4878294 1094 607 18 173 7 "18-25" 2299572 213 577 44 63 8 "0-17" 2443581 833 263 2 76 8 "18-25" 1297545 137 198 1 27 9 "0-17" 1918566 300 112 2 43 9 "18-25" 946779 49 267 13 18 10 "0-17" 301197 48 41 4 14 10 "18-25" 145536 19 42 7 7 11 "0-17" 614661 173 71 0 25 11 "18-25" 318915 26 127 9 9 end
webuse kahn, clear istdize death pop age using https://www.stata-press.com/data/r17/popkahn, by(state) pop(deaths pop) print
Years | SMR | IC 95% | REFERENCE |
2015 | 1.14 | (0.49-2.25) | 1 |
2016 | 1.39 | (0.74-2.38) | 1 |
2017 | 1.57 | (0.78-2.81) | 1 |
2018 | 1.87 | (1.17-2.84) | 1 |
Comment