BookmarkSubscribeRSS Feed
gradstudent
Calcite | Level 5

I am receiving an error message when trying to run a proc calis statement: The sample covariance or correlation matrix is not positive definite.

 

I'm unsure how to corrrect the issue.  Below is a screen shot of my code and error.  If anyone has any suggestions, I'd be willing to try them!  I'm wondering if the issue doesn't have to do with missing values in my variables.  But I'm a novice, and haven't ran a proc calis before.  Thanks in advance for any help!

2 REPLIES 2
SteveDenham
Jade | Level 19

I am not a PROC CALIS user, but whenever I see that a matrix is not positive definite, two things come to mind.  You have a complete dependence between two (or more) columns in the matrix, and either the model is overspecified or there is a linear dependence in the data.  Check for collinearity in your variables using PROC REG--if everything looks OK, then it is a model specification problem.  If there are majorly collinear variables, then try using just one of them (with adjustment to your path model, as needed).

 

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
  • 1949 views
  • 0 likes
  • 3 in conversation