Dear all,
I would like to compare two proportions (over time); but I think I have to restructure my dataset.
In 2012 - 2021 organizations tried to increase the notification rate of people living with disease X by applying an intervention.
For example in 2012 in the control group (C) 798 cases out of 606049 (population) were notified vs. 1076 out of 537856 in the intervention group (I). I would like to see whether this difference is statistically significant (including 95% CI). Hopefully it is also possible to study differences over time.
I think I need to restructure my data first. To get 100,000 rows with 0 (not notified) and 1 (notified), the CNRAF and CNRBC are case notification rates (per 100,000 people).
Thanks in advance, Liza
I would like to compare two proportions (over time); but I think I have to restructure my dataset.
In 2012 - 2021 organizations tried to increase the notification rate of people living with disease X by applying an intervention.
For example in 2012 in the control group (C) 798 cases out of 606049 (population) were notified vs. 1076 out of 537856 in the intervention group (I). I would like to see whether this difference is statistically significant (including 95% CI). Hopefully it is also possible to study differences over time.
I think I need to restructure my data first. To get 100,000 rows with 0 (not notified) and 1 (notified), the CNRAF and CNRBC are case notification rates (per 100,000 people).
Thanks in advance, Liza
Code:
YEAR AF BC POP C/I % CNRAF CNRBC 2012 798 450 606049 0 56.39098 131.67252 74.25142 2013 686 392 624398 0 57.14286 109.86582 62.78047 2014 723 450 647319.4766528223 0 62.24067 111.69137 69.51745 2015 583 379 664842.2501385728 0 65.008575 87.68997 57.006 2016 547 403 551020.5399679504 0 73.67459 99.27035 73.13702 2017 432 291 564495.6774984105 0 67.361115 76.52849 51.55044 2018 620 468 574951 0 75.48387 107.83527 81.39824 2019 659 464 590396 0 70.40971 111.62 78.59132 2020 694 548 606028 0 78.96254 114.51616 90.42487 2021 897 681 622067 0 75.91973 144.19669 109.47374 2012 1076 515 537856 1 47.86245 200.05354 95.75053 2013 1226 521 570573 1 42.49592 214.8717 91.31171 2014 1264 596 583449 1 47.1519 216.64276 102.15118 2015 1276 591 601421 1 46.31662 212.1642 98.26727 2016 1342 693 618517 1 51.63934 216.9706 112.0422 2017 1511 760 683966 1 50.29782 220.9174 111.11664 2018 1554 754 694664 1 48.51995 223.70528 108.54169 2019 1187 724 596525 1 60.9941 198.9858 121.3696 2020 1233 756 611564 1 61.31387 201.61423 123.61748 2021 1179 758 637763 1 64.29177 184.8649 118.85293 end

Comment