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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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