Anonymous posted on Wednesday, September 28, 2005 - 6:11 pm
I am analyzing short-term longitudinal data. I have 4 observation points sample size of 200 individuals. I have the model developed, but I continue to get an error message that the psi (latent variable) covariance matrix is not positive definite. After researching this issue, beyond consulting the Wothke article (I'm having trouble getting my library to order this article), what may I do to remedy this issue?
I believe that the data are salvagable so any tricks of the trade are well appreciated. Thanks in advance.
If you are using Version 3.13 it should point to which variable has the problem. You may have a negative residual variance or a correlation of one somewhere. You can see the negative residual variance in the results and you can ask for TECH4 to see if any variables have a correlation greater than one. Otherwise, you may have a dependency among two or more of your variables. If it is a small negative residual variance, you could fix it to zero. Otherwise, you would need to change your model. If you can't figure this out with this information, please send your input, data, output, and license number to firstname.lastname@example.org.
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE/RESIDUAL VARIANCE FOR A LATENT VARIABLE, A CORRELATION GREATER OR EQUAL TO ONE BETWEEN TWO LATENT VARIABLES, OR A LINEAR DEPENDENCY AMONG MORE THAN TWO LATENT VARIABLES. CHECK THE TECH4 OUTPUT FOR MORE INFORMATION. PROBLEM INVOLVING VARIABLE IN.
In the tech4 section I have found that there are correlations higher than 1. I don't understand exactly what does it mean and I don't know how to solve the problem. Could you help?
I think this will be solved if you include residual covariances among the outcomes at each time point, for example, d1 WITH neg1 etc.
Note that you should fit each process separately prior to putting them together in the same model.
Liu Xiao posted on Friday, August 17, 2007 - 2:41 am
I am doing a latent growth modeling, and I meet the same problem. The syntax:
agg2 by zcpagg2 ztrext2 (1); agg3 by zcpagg3 ztrext3 (1); agg4 by zcpagg4 ztrext4 (1); agg5 by zcpagg5 ztrext5 (1); agg6 by zcpagg6 ztrext6 (1); [zcpagg2 zcpagg3 zcpagg4 zcpagg5 zcpagg6] (2); [ztrext2 ztrext3 ztrext4 ztrext5 ztrext6] (3); i1 s1 | agg2@0agg3@1agg4@2agg5@3agg6@4;
zcpagg6 with zcpagg5; zcpagg4 with zcpagg5;
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE VARIANCE/RESIDUAL VARIANCE FOR A LATENT VARIABLE, A CORRELATION GREATER OR EQUAL TO ONE BETWEEN TWO LATENT VARIABLES, OR A LINEAR DEPENDENCY AMONG MORE THAN TWO LATENT VARIABLES. CHECK THE TECH4 OUTPUT FOR MORE INFORMATION.PROBLEM INVOLVING VARIABLE AGG2.
I check the tech4, there are correlations higher than 1. In residual variance, there are agg2, agg3,agg4, agg6, lower than 0.
How can I fix this problem? Can I use the MODEL CONSTRAINT to constraint the residual variance larger than 0 and smaller than 1?
Having only two indicators for your factors can be problematic as the factor at each time point is not identified without borrowing information from other parts of the model. Try running the model without measurement invariance and without the growth model to see if the problem occurs with that model. If so, the model is probably not correct for the data. If it occurs only after imposing measurement invariance, it may be that the factors are not invariant across time.
I'm using a latent growth model to model math achievement across 3 time points. I've gotten the same message that others have written about (PSI matrix is not positive-definite). The problem involves the variable "linear" (ie, the latent variable representing linear growth).
There are no negative residual variances, although the residual variance for "linear" is 0.000. I've checked my variables for collinearity and do not believe that to be a factor. I've also made sure that the variables have similar variances. One of my math variables has very high kurtosis (39). I've tried transformations (square root, natural log, and inverse; then I reflected the variable and tried all 3 again)--the transformations only make the kurtosis worse.
Does anyone have any suggestions for how to fix this problem? Could it be due to the kurtosis, and if so, how does this affect the accuracy of the estimates that Mplus calculates?
You say the residual variance for the linear slope is 0. That could be a cause for the message, for example if the slope is regressed on the intercept. Or the slope and the intercept are correlated 1.0 - which you can see in the TECH4 output. To avoid this you may want to center at a different time point.
The slope and intercept were actually not correlated very highly. I did try centering at a different time point, but it didn't help. I finally fixed the "linear" residual variance to .001 (based on other posts & responses, it seems that this is acceptable), and stopped getting the error message.
If this is not a good solution, I'd appreciate hearing about it, although it seems that others have done similar things.
What may also be happening in your data is something that seems to occur more in achievement data than any other type of data: insufficient changes in rank-order for modeling *variability* in growth (i.e., *very* high correlations between repeated measures). I ran into a similar problem as yours in working with some early reading achievement data (i.e., pre-kindergarten through 4th grade) - and (according to some developmental psychologist friends of mine) for some (but not all) types of achievement outcomes this phenomenon seems consistent with literature that suggests that, after a certain point kids tend to maintain their rank ordering in achievement.
I'd still wait to see what Bengt suggests you do about it - but you may want to peek at the sample correlations (and see if they are really high) to help diagnose where this is coming from......
We are looking at academic achievement data using the same measure at three time points. We have four outcome variables: math, vocabulary, listening comprehension, and alphabet knowledge.
We first ran the model for math, and it worked just fine. We then tried to run the models for the other three outcomes and we received the following message:
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE......
Upon reviewing the output, we notice we have a correlation between baseline and linear that is greater than 1. We have tried centering the variables at each time point and we've checked for collinearity. However, we still get the same warning message. We do not have enough df to do all of the with statements and therefore, that is not an option for us. We are not sure why the intercept and growth terms are so highly correlated and what we can do about it at this point.
I'm doing a unconditional LGGM with alcohol use data. When I assumed 3 classes I also received above mentioned warning. Looking at tech4 revealed that I have a negative variance in my Intercept. Some colleagues mentioned that it helps to fix variances of the slope and/or intercept to zero to avoid the warning. But the variances of my intercept and slope are significant. Is fixing the variance of the slope or intercept to zero really the right way to handle that problem? Additional information: 1)My Data is skewed and has a preponderance of zeros and i haven't done two part yet,is this problem related to psi-warning?, (I'm doing LGMM with MLR instead, to get a clue about LGMM, which is a new topic for me). 2)I have some outliers at time1 (which is the intercept). Would deleting them be helpful? 3) are there any model restrictions (in LGGM default by mplus 4.21) which may foster the psi-problem? Can I free/fix a parameter (beside above mentioned variances) to solve the problem?
If you have a significant negative residual variance, the model is not appropriate for the data. Outliers and a preponderance of zeros should be considered. Please send your input, data, output, and license number to email@example.com for further comments.
Jungeun Lee posted on Sunday, December 16, 2007 - 5:51 pm
Related to the post 'pm posted on Monday, November 12, 2007 - 12:52 pm' and 'Bengt O. Muthen posted on Monday, November 12, 2007 - 1:06 pm', can we trust variance estimates got from the model that we get some warnings like 'non-positive PSI', 'parameters were fixed to avoid singularity of the information matrix'?
I am working on a growth mixture model. When I have more than 2 classes without constraining within-class variances, I meet the same problem (PSI is not positive definit). Whenever I have this problem, I am pretty puzzled about what I can do about it. Could you give us a general guidance in what we can do about it to fix this problem? OR, solutions to this problem depends on the situation?
i am working on a growth curve model with an intercept and a slope factor. outcome variable is the summarized annual rate in self-reported delinquency for 15 offenses. the rate is transformed to its natural logarithm. besides that i included a range of TVCs (modelled as markov-chains) and three TICs. i have five time-points to analyze. the slope factor loadings are fixed to 0 and 1 for time point 1 ad 2 resp. the rest is freely estimated. all constructs (except the TICs) are treated as latent variables.
here comes the problem:
when estimating the model under listwise deletion conditions everything is fine. using the option of full information estimation leads to a correlation greater 1 between intercept and slope. i am wondering why? and what can be done? fixing the variance at a certain value? fixing the growth factor means at zero (loss of information)?
The data are quite different when you use listwise deletion versus TYPE=MISSING; which suggests the listwise deletion sample is selective.
To better understand why you get growth factors correlating greater than one, I would first fit the growth model without covariates. Then I would add time-invariant covariates. After that I would add time-varying covariates.
me again. Is there any possibility to change something in the model or any way out this problem?
THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE.
That is the modell: W1_TA by w1_taet2 w1_taet4 w1_taet5 w1_taet6; W2_TA by w2_taet2 w2_taet4 w2_taet5 w2_taet6; W3_TA by w3_taet2 w3_taet4 w3_taet5 w3_taet6; W1_OP by w1_opf2 w1_opf3 w1_opf4 w1_opf5; W2_OP by w2_opf2 w2_opf3 w2_opf4 w2_opf5; W3_OP by w3_opf2 w3_opf3 w3_opf4 w3_opf5;
W2_TA on w1_OP w1_TA; w2_OP on w1_OP w1_TA; w3_TA on w2_OP w2_TA; w3_OP on w2_OP w2_TA;
w1_OP with w1_TA; w2_OP with w2_TA; w3_OP with w3_TA;
After running this syntax I get the following message:
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE/RESIDUAL VARIANCE FOR A LATENT VARIABLE, A CORRELATION GREATER OR EQUAL TO ONE BETWEEN TWO LATENT VARIABLES, OR A LINEAR DEPENDENCY AMONG MORE THAN TWO LATENT VARIABLES. CHECK THE TECH4 OUTPUT FOR MORE INFORMATION. PROBLEM INVOLVING VARIABLE S2.
After checking TECH4, I see that in the estimated covariance matrix I have negative values and values greater than 1. How can I solve this problem?
In the the estimated correlation matrix, I have negative values. This should not be a problem, should it?
I would only fix it in the quadratic model if it is estimated as a small negative value.
Alan Gow posted on Wednesday, August 24, 2011 - 5:01 am
I'm running a growth curve model with 3 latent factors (each defined by 4 measures). The warning message WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE VARIANCE/RESIDUAL VARIANCE FOR A LATENT VARIABLE, A CORRELATION GREATER OR EQUAL TO ONE BETWEEN TWO LATENT VARIABLES, OR A LINEAR DEPENDENCY AMONG MORE THAN TWO LATENT VARIABLES. CHECK THE TECH4 OUTPUT FOR MORE INFORMATION. PROBLEM INVOLVING VARIABLE I.
appears. Checking TECH4 shows a correlation greater than 1 with the first factor and a covariate. How can I remedy this?
You may need a direct effect from the covariate to a factor indicator. Check the modification indices.
Till posted on Tuesday, September 13, 2011 - 6:09 am
Dear Mrs. and Mr. Muthén, I'm conducting a latent growth curve analysis with the factors F1 F2 F3 as latent exogenous variables. I'am interested in the parameter loadings between these factors and the slope. Slope and intercept are assessed at nine time points. In one sample, MPlus warns me that the latent variable covariance matrix is not positive definit which seems to be due to a negative residualvariance and a negative variance of the slope. Is there a way to solve that problem, for example by fixing the residualvariance to 0.01 or would that mean to suppress the variance of the slope which I'am mainly interested in? Could I, as an Alternative, just report the unstandardized values of the parameters? Please find my Input data below:
We get the PSI warning that people have mentioned in the thread. TECH4 shows a value of 1.004 between S and I in the correlation matrix, I guess that's the reason.
So I included y0 y1 y2 y3 PWITH y1 y2 y3 y4; as seen in one of your videos. This changes the correlation to -0.028, the PSI warning disappears, and the MI also get smaller (highest one from 240 to 190, but still high).
However, since the MI indices are very high and the fit is bad, I freed the last 3 timescores (y0@0y1@1 y2*2 y3*3 y4*4;). The fit indices get wonderful and the MI indices much better, but the correlation between I and S goes up again to 3.9 again and the PSI warning appears.
The same happens in models with several classes as soon as I move from a LCGA model (i-s@0;) to a GMM model (!i-s@0): good fit, but correlation between I and S >1.
(Negative residual variances seem not to be a problem.)
Thank you for suggestions Torvon
EFried posted on Saturday, January 21, 2012 - 1:03 pm
(Update: in some class solutions I do actually have negative residual variances in the biggest class, usually on I. In the so far best 2 class solution the negative residual variance of I = -.6, too big to just fix it to zero )
I'm trying to run a straightforward growth curve model of a single observed variable over 5 time points, and I am getting the non-positive definite PSI matrix error. The slope term is causing a problem: according to the TECH4 output the correlations of S with S, and of S with I, are both 999. I had previously tried running it with a larger data set, when the correlation of S with I was estimated as above 3, and most of the other parameters seemed to be estimated normally.
There is nothing strange about the data as far as I can tell - all five variables are roughly normally distributed, with correlations between the time points ranging from 0.43 to 0.59.
My model syntax is as follows (which works fine for different variables):
I´m running an growth curve model with 4 time points. When I use only an linear latent slope, the model is performing well. when I introduce an quadratic slope I get the warnings WARNING: THE RESIDUAL COVARIANCE MATRIX (THETA) IS NOT POSITIVE DEFINITE.
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE.
Indeed, I checked, the model estimates two negativ variances
I am trying to estimate a multiple indicator linear growth model for two parallel processes for continuous outcomes and I am getting the warning that the latent variable covariance matrix (PSI) is not positive definite.
When inspecting the model results and TECH4 output, it turns out that one of the slopes has a negative variance and a correlation of 999 with all other latent variables. I have tried to center the time scores, but this doesn’t solve the problem. When I fix the variance of the slope to zero I do not get the warning anymore, but the correlation between the slope and all other latent variables remains to be 999 and more importantly, it does not allow me to investigate the correlated change. Is it possible to solve this problem without fixing the variance of the slope to be zero?
Thank you very much for your help and suggestions in advance!
I am doing a multi-group comparison of a pretty complicated SEM model. When I run the analysis, the model converged for two of my groups but not the third. For this group, I get a not positive definite psi matrix.
The problem is with the residual variance of my latent outcome. The size of the residual variance is -.015 and it is highly insignificant p=.623.
For the other groups, the residual variance is very small (.008 and .007) and also insignificant (.781 and .819).
I am wondering if it would, therefore, be justifiable to fix the residual variance of this latent variable to zero?
Sorry for the previous message, I was looking at the wrong version of my model. This is a cross-sectional complex model where I am doing a multi-group comparison. The model is pretty complicated. When I run it, I get a not positive definite psi matrix for all my groups.
The problem is with the residual variance of my latent outcome. The size of the residual variance is -.002, -.004, and -.024 depending on the groups and is highly insignificant p>.5
Given this, I am wondering if it would be justifiable to fix the residual variance of this latent variable to zero?
I am trying to run this GMM but am getting an error: WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IN CLASS 2 IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE VARIANCE/RESIDUAL VARIANCE FOR A LATENT...
Is it because I'm getting a negative variance?
ESTIMATED COVARIANCE MATRIX FOR THE LATENT VARIABLES ICEPT LINEAR ________ ________ ICEPT 0.082 LINEAR 0.021 -0.007
How can I fix this? I read the other posts but I wasn't sure and don't want to do it incorrectly.
Yes, a negative variance gives this message. This implies that the latent classes explain all variation in the linear growth factor and there is no further within-class variation. You can fix this variance at zero, or you can use fewer classes.
I have fixed this variance to zero, but after reading some more on your website it seems that I should not fix this variance to zero if it significant correct? The slope variance of -.007 is significant. See below for reference.
Linda K. Muthen posted on Wednesday, November 28, 2007 - 2:41 pm If you have a significant negative residual variance, the model is not appropriate for the data. Outliers and a preponderance of zeros should be considered. Please send your input, data, output, and license number to firstname.lastname@example.org for further comments.
I'm estimating a dyadic growth model and am getting a warning about one of the latent variables, but cannot see why this warning is coming up. Can you please help?
THE MODEL ESTIMATION TERMINATED NORMALLY
WARNING: THE LATENT VARIABLE COVARIANCE MATRIX (PSI) IS NOT POSITIVE DEFINITE. THIS COULD INDICATE A NEGATIVE VARIANCE/RESIDUAL VARIANCE FOR A LATENT VARIABLE, A CORRELATION GREATER OR EQUAL TO ONE BETWEEN TWO LATENT VARIABLES, OR A LINEAR DEPENDENCY AMONG MORE THAN TWO LATENT VARIABLES. CHECK THE TECH4 OUTPUT FOR MORE INFORMATION. PROBLEM INVOLVING VARIABLE SW. Thanks,