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!
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.