BookmarkSubscribeRSS Feed
ims
Calcite | Level 5 ims
Calcite | Level 5

Hello! I am emailing you with a brief coding question. I need to fit a marginal logistic regression model and used the following code:

 

PROC GENMOD DESCENDING;

   CLASS id trt (REF=first) week (REF=first);

   MODEL y=trt week trt*week / DIST=BINOMIAL LINK=LOGIT;

   REPEATED SUBJECT=id / WITHINSUBJECT=week TYPE=EXCH;

RUN;

 

unfortunately, I only get estimates from my model but cannot get 95%CIs and SE. Do you have any idea what could be wrong with the code?

 

I get the following error message:

error in computing the variance function

error in parameter estimate covariance computation

error in estimation routine

2 REPLIES 2
StatDave
SAS Super FREQ

With binary response models, this typically is the result of the data being sparse. Sparseness usually occurs when all responses in one subpopulation of your data (one trt-week combination) are the same. The way to fix this is usually to merge sparse subpopulations with others to remove any sparse subpopulations. For ordinary binary response models, this condition is called separation and is discussed further in this note.

ims
Calcite | Level 5 ims
Calcite | Level 5

Perfect, thanks so much for getting back to me so quickly!!! I think I figured it out...

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1297 views
  • 0 likes
  • 2 in conversation