BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mcmag
Calcite | Level 5

I am trying to determine why I received the following errors when I ran GEE on my data using logor=exch and why I did not receive those errors when I ran my data with type=exch:

Error in log odds ratio regression computation.

Error in parameter estimate covariance computation.

Error in estimation routine.

The respective code is listed below:

proc genmod data=both;

class inhalyn (ref="0") grades (ref="3") wave uid / param=ref;

model inhalyn=grades / dist=bin link=logit;

repeated subject=uid / withinsubject=wave logor=exch;

estimate "1 vs 3" grades 1 0 / exp;

estimate "2 vs 3" grades 0 1 / exp;

run;

proc genmod data=both;

class inhalyn (ref="0") grades (ref="3") wave uid / param=ref;

model inhalyn=grades / dist=bin link=logit;

repeated subject=uid / withinsubject=wave type=exch;

estimate "1 vs 3" grades 1 0 / exp;

estimate "2 vs 3" grades 0 1 / exp;

run;

SAS was able to give me estimates and ORs when using type=exch. Inhalyn is a binary variable and grades is a 3-level categorical variable. I used the same code for other 3-level categorical variables and was able to get estimates and ORs when using logor=exch, so I'm trying to figure out what's different about this variable/scenario that would require type=exch instead of logor=exch.

Your help is much appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

This sounds like a job for Tech Support.  I have a guess, but it is probably wrong.  Any possibility that an OR is pathological for one of the waves, such that the log odds ratios are not exchangeable, but the correlations are?  By pathological, I mean a zero or some value greater than the machine arithmetic recognizes? This would result in errors when the alternating method is applied.

Steve Denham

View solution in original post

2 REPLIES 2
SteveDenham
Jade | Level 19

This sounds like a job for Tech Support.  I have a guess, but it is probably wrong.  Any possibility that an OR is pathological for one of the waves, such that the log odds ratios are not exchangeable, but the correlations are?  By pathological, I mean a zero or some value greater than the machine arithmetic recognizes? This would result in errors when the alternating method is applied.

Steve Denham

mcmag
Calcite | Level 5

I think you're right!

Thanks so much for your help.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 1997 views
  • 1 like
  • 2 in conversation