BookmarkSubscribeRSS Feed
katemcguckin
Fluorite | Level 6

 

Hi,

Say you have an incidence rate in PYs.   

 

Suppose the variable is called MENNO = number of cases of meningitis

And you have another variable called PYTOTAL = total person years of study

 

1. How do you program, in SAS, the incidence rate in person-years? (IR in PYs)

2. How do you program a 95% CI of the IR in PYs?

3. How do you program the IR in PYs after confounding, say for age, sex, race?

 

I don't have any data yet. But I NEED to know the programming steps for these 3 questions and can't find them on the internet.

 

I suck at macros at this point, too.

 

Please help!

Kate

2 REPLIES 2
PaigeMiller
Diamond | Level 26

It's hard to give code without being able to reference an actual data set.

 

But, for example, take this part of your question

 

1. How do you program, in SAS, the incidence rate in person-years? (IR in PYs)

 

If you had to do this without a computer, in other words, do it in your head, or pencil and paper, what are the calculations?

--
Paige Miller
Reeza
Super User
Isn't that just MEMNO/PYTOTAL?

If you don't have real data, make fake data and work with that. Working with imaginative constructs is much harder, especially trying to explain it to someone else.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 944 views
  • 2 likes
  • 3 in conversation