BookmarkSubscribeRSS Feed
varatt90
Obsidian | Level 7

Hi, 

 

I am using the PROC GENMOD statement for my analyses. I would like to see the interaction effects of two variables on the outcome. Let's assume my

- outcome HIV_STATUS = binary 

- SEX = binary

- BULLYING = nominal with three levels

 

PROC GENMOD DATA = test DESCENDING;
CLASS AREAID SEX (REF = "0") HIV_STATUS (REF = "0") BULLYING (REF = "0");
MODEL HIV_STATUS = SEX BULLYING SEX*BULLYING / DIST=Binomial LINK=Logit ALPHA=0.05 TYPE3 ;
RUN;

So the resulting"Analysis Of GEE Parameter Estimates - Empirical Standard Error Estimates" table output would look something like this: 

Parameter                                                  Estimate (Log Odds)

SEX*BULLYING     Level 1   1                  0.23

SEX*BULLYING     Level 1   0                  0.00

SEX*BULLYING     Level 2   1                  0.50    

SEX*BULLYING     Level 2   0                  0.00

SEX*BULLYING     Level 3   1                  0.00  

SEX*BULLYING     Level 3   0                  0.00 

 

However, I want to see the estimates comparing possible combinations. So I add the statement:

LSMEANS  SEX*BULLYING / DIFF ODDSRATIO CL;

The "Differences of Least Squares Means Table" for this interaction gives me 15 different possible combinations - with an estimate statement and OR. 

 

My question is - and bare with me as I'm new to stats - can I interpret the estimate from the "Differences of Least Squares Means Table" as I would for the estimate (log odds)  provided by the "Analysis Of GEE Parameter Estimates - Empirical Standard Error Estimates"? Or should I be finding the ORs separately by hand using the estimates provided by the "Analysis Of GEE Parameter Estimates - Empirical Standard Error Estimates"

 

If you think there are any resources that might be helpful as well, please do share!

 

Thank you!

1 REPLY 1
StatDave
SAS Super FREQ
It's not quite clear exactly what you are asking or what you want to estimate, but if you are looking tests or odds ratios comparing the 6 sex-bullying combinations, then you need only the p-values and odds ratio columns in the LSMEANS Differences table. The Estimate column in that table gives the estimated pairwise differences in log odds (equivalently, the log odds ratios). You would not interpret the Estimate column in the Parameter estimates table as odds ratios or log odds ratios.

But I should note that PROC LOGISTIC is the better procedure to use whenever you have a logistic model. The ODDSRATIO statement in that procedure makes estimating odds ratios a bit more obvious. For your case, you could replace the LSMEANS statement with two ODDSRATIO statements:

oddsratio sex; oddsratio bullying;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1157 views
  • 2 likes
  • 2 in conversation