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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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