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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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