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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 328 views
  • 1 like
  • 2 in conversation