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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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