BookmarkSubscribeRSS Feed
lauragrau
Calcite | Level 5

I am running this code:

PROC GEE DATA=test DESCENDING ;
CLASS id testcat(desc ref='0') fiscal_yr;
MODEL ldl_lt100(REF='1')=testcat fiscal_yr /DIST=MULTINOMIAL LINK=GLOGIT TYPE3;
REPEATED SUB=id/WITHIN=fiscal_yr;
LSMEANS testcat/ILINK ODDSRATIO DIFF CL;
RUN;

 

My outcome is 0, 1 or 2. I want the reference group to be 1.

 

Currently, the LSMEANS is showing this in the LSMEANS differences table:

Table 1:

ldl_lt100testcat_testcat
221
220
210
121
120
110

 

However, I want:

Table 2:

ldl_lt100testcat_testcat
221
220
210
021
020
010

 

The weird/interesting thing here is that I get the output I want (Table 2) in the unadjusted model, but as soon as I add covariates, it shows Table 1.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 0 replies
  • 1421 views
  • 0 likes
  • 1 in conversation