BookmarkSubscribeRSS Feed
____1
Calcite | Level 5

Hi,

 

I'm trying to fit a random intercept mixed model with a sp(pow) covariance structure (time is continuous) to quality of life data. When I try to run the code below SAS gives me the following error:

 

"Warning: Stopped because of too many likelihood evaluations."


proc mixed data=data cl;

class person_id treatment_group;

model QOL = QOL_baseline treatment_group time treatment_group*time

/ solution cl htype=1;

repeated / type=sp(pow)(time) subject=person_id r rcorr;

random intercept / subject=person_id;

run;

 

Can anyone help?

1 REPLY 1
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

As noted in Tips and Strategies for Mixed Modeling with SAS/STAT® Procedures by Kiernan et al., this warning could be due to an overspecified model. Try omitting

 

random intercept / subject=person_id;

This paper by Littell et al. describes the difference between an AR(1)+RE structure and an AR(1) structure.

 

The Kiernan et al. paper lists other potential solutions to this problem.

 

I'd also add the <repeated-effect> to the REPEATED statement; it may not be necessary for your data but it's a programming safeguard. See the documentation.

 

I hope this helps.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1 reply
  • 2503 views
  • 0 likes
  • 2 in conversation