BookmarkSubscribeRSS Feed
pramenon1
Obsidian | Level 7

I have three variables:

  1. cancer = 1 (they have cancer), 0 (no cancer)
  2. death = 1 (died), 0 (did not die)
  3. agegroup = 1, 2, 3, 4, 5 (depending on what age bracket they fall under.

I am trying to see if cancer status affects death in people of the above agegroups.

My code right now is:

 

PROC LOGISTIC data = dtanl.hivcancerdta order = data;
class agegroup (ref = "1");
model death01 = agegroup cancer/ expb;
ODDSRATIO agegroup / diff = all;
WHERE ALSO death01 ^= 9;
RUN;

 

The way I am interpreting the above model is "what is the likelihood of death in persons of a certain agegroup when controlling for cancer". Is this correct?

1 REPLY 1
PaigeMiller
Diamond | Level 26

Technically, the fitted model predicts the logarithm of the ODDS RATIO. From the predicted log(odds ratio), you can compute —  or have PROC LOGISTIC compute — the probability of DEATH01 being 0.

--
Paige Miller

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 407 views
  • 1 like
  • 2 in conversation