Please help!
I want to calculate the Incident rate ("event incident rate per 100 person-years") and its corresponding 95% confidence intervals (CI), but I have no clue where to start to do.
Please help me, thank you!
Can you show us a portion of your data? The preferred method of providing data is https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/
The last time I did this was about 15 years ago, and I did it 'by hand' in a DATA step. So I read through the data, and counted number of incidents, and added up the number of person-years, then at the end I did some math for the confidence interval. That's definitely an option. If your data are well structured, it's pretty straight forward.
I would start by heading to lexjansen.com and searching the papers indexed there for "incidence".
I found a few with macros, but also saw that SAS/STAT 12.1 introduced PROC STDRATE, which looks like it will do it:
https://lexjansen.com/nesug/nesug12/sa/sa19.pdf
https://support.sas.com/resources/papers/proceedings13/423-2013.pdf
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.