BookmarkSubscribeRSS Feed
suebayran
Calcite | Level 5

Hello,

 

I have a dataset with a continuous outcome variable and 3 treatments (1 of which is placebo). I have about 60 observations in my dataset; 60 subjects each of which got 1 treatment and was measured once - the dataset is balanced but measurements were taken in blocks of days but only 2 measurements were taken each day (incomplete blocks?). I need to include the block in  my model as a random effect. I am trying to get the effect of the drug and im running a proc mixed with a random block effect, but i am not getting an anova table and am getting an error that the "Estimated G matrix is not positive definite." Can anyone tell me what I am doing wrong? Thank you.

1 REPLY 1
SteveDenham
Jade | Level 19

Please share your PROC MIXED code and enough of your data to enable some trouble shooting.  I suspect that you may have misspecified the random effect, as the message 'Estimated G matrix is not positive definite' means that at least one variance parameter is being set to zero.  There are a couple of ways around this, but it depends on design, data structure and code.

 

Steve Denham

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 976 views
  • 0 likes
  • 2 in conversation