BookmarkSubscribeRSS Feed
DIHS
Calcite | Level 5

Hi,

 

I am trying to compare covariance parameters using covtest with the general specification in Proc Glimmix. Without using covtest everything seems to work. With the covtest statement I get the warning ‘The initial estimates did not yield a valid objective function’ and I get no p value for the comparison of the covariance parameters. Does anyone have any idea why this is happening? My code essentially looks at the covariance between two traits (age at maturity and size) with family as the subject. All the covariance parameters are positive except the two for the covariance between the two traits (one for each of the two treatments), i.e the families which matured later were smaller in both treatments.  I would like to know if the treatment changes the covariance between the traits with family as the subject. My code is:

 

proc glimmix data=mydata;

class family trait ID treatment;

model response=trait treatment;

random trait  / subject = family   group= treatment type=un;

random _residual_/subject=family(ID)  group=treatment type=un;

covtest general . 1 . . -1 /estimates;

run;

 

 

Thanks for your time

 

 

 

2 REPLIES 2
plf515
Lapis Lazuli | Level 10

In this paper by Kiernan, Tao and Gibbs (all with SAS), there is a section about this error.   I tried to cut and paste that section, but the formatting got all messed up.

 

SteveDenham
Jade | Level 19

This may be something as simple as replacing the '.'s in the GENERAL option with zeroes:

 

covtest general 0 1 0 0 -1;

 

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 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
  • 2981 views
  • 1 like
  • 3 in conversation