Convergence PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Anonymous posted on Friday, October 29, 1999 - 11:45 am
What should I do when my model won't converge?
 Linda K. Muthen posted on Friday, October 29, 1999 - 11:53 am
It depends why the model won't converge. First of all, check Tech5 to see when the estimation stopped. If it just ran out of iterations and there are no negative variances in your results, then increase the number of iterations. It would speed things up if you used the preliminary estimates as starting values. If the iterations stopped before reaching the default number of iterations, the starting values are not appropriate for the data and new starting values should be tried. You should first check to make sure that your observed variables are not measured on very different scales. If they are on very different scales, you can rescale them using DEFINE to divide them by a constant. This may help convergence because it changes the starting values. If this does not work and you need to try different starting values, start with the variance parameters first as they are most often the problem. It is unlikely that starting values are needed for factor loadings or regression coefficients.
 Anonymous posted on Monday, March 11, 2002 - 9:34 am
How does one go about choosing starting values for variance parameters?
 Linda K. Muthen posted on Monday, March 11, 2002 - 10:19 am
You can try half of the sample variance.
 Christian Geiser posted on Monday, October 18, 2004 - 8:38 am
I am analyzing different CFA models with Mplus. I have complex sample data (students nested within classes), high intraclass correlations and so used the TYPE = TWOLEVEL option in Mplus. The models work relatively well if they are very small (1 or 2 factors). However, when I try more complex models I almost always receive an error message telling me that the estimated between covariance matrix is not positiv definite. Could you please give me some hints what is most likely the cause of this problem and what I could do about it? Thank you very much in advance!
 Linda K. Muthen posted on Monday, October 18, 2004 - 10:45 am
It may be that the between matrix cannot support as many factors as the within matrix. Have you fit the two models separately to see?
 Christian Geiser posted on Tuesday, October 19, 2004 - 2:56 am
Thank you for your reply. But even when I specify an unrestricted model for the between level (all observed variables simply correlated with each other, no latent variables), I get the same error message.
 Linda K. Muthen posted on Tuesday, October 19, 2004 - 9:18 am
The unrestricted model you refer to is the most complex model in that it has many random effects.

Regarding the failure of your factor model, it may be that in the factor model, you need to fix some between-level residual variances that are very small to zero. You can send the output and data for the factor model to if you want a more definitive answer.
 Anonymous posted on Thursday, July 07, 2005 - 3:08 pm
Hello- although I have experience with one-level SEMs, I am new to MPLUS and two-level SEMs. I have read through the new manual (v 3.12) and all the workshop handouts, as well as this discussion board. Despite all of this, I am having a lot of problems getting my model to converge.

I have complete data from 75 couples, and all the variables are evenly distributed. All are on the same scale except one, and that is defined to be on a similar scale in comparison to the measures in the rest of the model. It is a modified health behavior change model looking at factors that predict condom use. All items are continuous. There are 2 latent variables (motivation, a mediator, and behavioral skills, which is exogenous) and 2 other measured variables (hivknow which is exogenous and cndpvp, which is the outcome variable and is condom use frequency). There are several measured variables for each latent variable as well.

I want to show that the couple level model predicts condom use well, if not better than the individual level model that is typically used in research. There are several couple level variables (e.g., intimacy) that I want to try out, once I get the model to run.

In trying to follow the 4 steps outlined in the Muthen (1994) article, the first overall model identified and converged.

When the between-model was run, however, it wouldn't converge. There were no negative error variances, so I first increased the iterations. These increases didn't help, so I set the starting values to the preliminary values obtained in the first run. It still didn't converge. Then, I set the starting values to being 1/2 the sample variance for each variable. This also didn't get the model to converge.

The intraclass correlation between the variables are all high, so I definately want to model this on a between dyads level. (step 2).

I then tried to respecify the model at the dyadic level, making all the items load on a single latent variable, and having one of the items be a within-only item. I didn't use any starting values here because I wanted to see if changing the model would work. This still didn't converge, and there is now a negative error variance with one of the latent indicator variables. I tried fixing the starting values for this variable using the same strategies I described above, and this didn't help. I am now at a loss about what to do. Are there any other strategies that you might suggest?

I can email you the output/input and data if you would like. I have been using "free" input from a txt file and not any matrices. I tried to get the program to give me matrices using the save data functions, but no data appears in the files.

Sorry this is so long! I figured the more details you had the easier it would be to diagnose the problem. Thanks-
 bmuthen posted on Thursday, July 07, 2005 - 3:32 pm
It sounds like we have to know more details about your 2-level modeling efforts to diagnose this. Please send your input, output, data, and license number to
 Marc posted on Wednesday, October 26, 2005 - 1:46 am

I would like to use the "TYPE=TWOLEVEL"-option in order to create a pooled-within-group-correlation-matrix. This works fine with my total sample of n=525 observations within k=38 clusters. However, I would like to divide the sample in order to conduct EFA and CFA on different data sets. The resulting data sets still have k=38 clusters but only n=262 observations. With these data sets, the estimation of the pooled-within-group-correlation-matrix doesn´t converge due to a nonpositive covariance-matrix. I tried to use the variance-estimations of the complete data set as starting values for the smaller data sets, but there is still no convergence.

I would be very thankfull for any suggestions.
 Linda K. Muthen posted on Wednesday, October 26, 2005 - 9:15 am
How many observed variables do you have? Are you using Version 3.13?
 Marc posted on Wednesday, October 26, 2005 - 1:05 pm
Hello Linda,

there are 21 observed Variables and the Mplus Version is 3.12.

Thanks again.
 Linda K. Muthen posted on Wednesday, October 26, 2005 - 3:00 pm
With 21 variables, you are trying to estimate 231 parameters. That is probably the problem. If you send your input, data, output, and license number to, I can take a look at this.
 Naomi Dyer posted on Tuesday, August 22, 2006 - 10:22 am
I am having the same issue when trying to model 13 latent variables with 3-4 observed variables for each latent variable. I have set may of the error variances to .02. Before I continue setting error variances or other parameters, I didn't know if it is unlikely to help given how many indicators (about 51) and latent variables I have. And I need to allow for covariances between the latent factors. In sum, should I break the model up into 4, 4, and 5 latent variables in order for it to converge?
 Bengt O. Muthen posted on Tuesday, August 22, 2006 - 6:06 pm
This is a little hard to diagnose without seeing the output. When you say that you are setting error variances to 0.02, it sounds like you talk about between-level error variances which are often small and can be set at zero. This certainly helps computations if outcomes are categorical. If the outcomes are not continuous, but say categorical, having many factors make estimation (which is by ML) computationally intractable. The best approach here is to send input, output, data, and license number to
 Angela Bryan posted on Monday, January 05, 2009 - 11:23 am
I am attemping to estimate a fairly simple mediational model from an intervention that was run in groups. There are 2 exogenous variables, 5 mediators, and 2 outcome variables. I am using the type=complex and mlr estimator to account for clustering due to group membership. We have estimated such models before in previous versions of Mplus with no problems. But with version 5.1, the model will not converge and I get the following message regarding nonconvergence:


I have tried variations on the model, but continue to get this message. Could you advise regarding this error message?

Thank you so much,
 Linda K. Muthen posted on Tuesday, January 06, 2009 - 10:47 am
The message you receive is not due to non-convergence. It just reminds you that you have more parameters than clusters. It is not known how results are affected in this case.

For help with convergence, please send your input, data, output, and license number to
 Angela Bryan posted on Tuesday, January 06, 2009 - 11:04 am
Will do, thank you Linda.
 Girish Patwardhan posted on Sunday, April 25, 2010 - 2:17 pm
I am trying to run a SEM model with many variables (140+). These form a sensible 27 factor solution. These 27 factors are suppose to form a 7 additional constructs and then those constructs will be regressed on a categorical variable. I have 750+ respondents. When I try to fit the whole model, it doesn't converge, even after reducing convergence criterion and adding iterations. So using User's Guide, Chapt 13, page 382, I ran separate models and found solution for each of the constructs. I do get answers for that. Now how can I specify these as starting values in a bigger model? Even if I cannot have all 27 factors, since some of them will have no real impact on the dependent variable, at least 12 of these do play a role.

Thank you
 Linda K. Muthen posted on Sunday, April 25, 2010 - 5:58 pm
I don't think starting values is the answer. I think it is more likely that you have some variables with large variances. If this is the case, recode the variables by using DEFINE to divide them by a constant such that their variances are between one and ten. Another problem may be that the first factor indicator which is fixed at one to set the metric may not actually have a factor loading close to one. If you free the first factor loadings and fix the factor variances to one, you can see if this is the case.
 Girish Patwardhan posted on Monday, April 26, 2010 - 6:46 am
I will try to free the first factor loading and see what happens. All variables take values between 1 and 5 (one or two may be 6), so variance cannot be a problem.

I will let you know what happens with freeing first paramenter.

Thank you
 Linda posted on Monday, June 28, 2010 - 12:34 pm
What type of indirect effect does Mplus estimate for clustered data? Sobel or Bootstrapping?
 Linda K. Muthen posted on Monday, June 28, 2010 - 12:58 pm
With clustered data only Delta method standard errors are available for indirect effects.
 Linda posted on Monday, June 28, 2010 - 1:03 pm
Thank you!
 Cecily Na posted on Friday, December 03, 2010 - 5:58 pm
Dear Linda,
What's the command to increase iterations? I have a convergence problems too. My model does not converge.
Thank you!
 Linda K. Muthen posted on Friday, December 03, 2010 - 6:11 pm
The most commom one is ITERATIONS.
 yin fu posted on Thursday, September 29, 2011 - 2:07 am
Dear Drs Muthen,

I have a simple model with two independent variables and one dependent on level one. To simplify things I created indices from the items and treated the latent variables as manifest ones.
Now I would like include a fixed error variance. e.g.
x_with by ind_x;
x_bet by ind_x;

This works fine for the dependent variable, but when I implement it for the independent variable, the iterations stop immdiately, without any error message.

What did I do wrong?

I read in the Mplus Code from the Marsh et al. (2009) paper the analysis command GHFIML=OFF; when implementing latent variables for twolevel random.
What does it mean?
I've tried it, but then my model cannot be identified.

Thank you very much for your help,

Best regards,

 Linda K. Muthen posted on Thursday, September 29, 2011 - 5:49 am
Please send the relevant files and your license number to Be sure you are using Version 6.11.
 Allison Lombardi posted on Monday, December 26, 2011 - 8:17 am
I ran a two level model with fixed effects with no problems. I am now trying to run the same model with random effects but I can't get the model to converge, at least I believe that is the problem. The output file indicates "input reading terminated normally" which I believe means that I have no syntax errors. But then no results are shown. I listed TECH1 TECH3 TECH5 TECH8 to be shown as output. Does this mean the model won't converge or another problem?
Thank you in advance.
 Linda K. Muthen posted on Monday, December 26, 2011 - 8:37 am
The variances of the random effects are probably zero. Check the partial results. If this is not the case, please send the full output and your license number to
 Allison Lombardi posted on Monday, December 26, 2011 - 10:46 am
That might be the case, bu I'm not sure because the output has no information. I will send you the output, input, and data file. Thank you very much.
 Cole Byron John Robertson posted on Monday, August 11, 2014 - 6:35 am

I'm new to MPlus and two-level modelling and am trying to specify a two-level mediation model, and it keeps failing to converge.

These variables have all been standardized in SPSS. The model attempted to test whether there is a ZAGENCY-mediated relationship between ZFUSION and ZLEADING. The GROUP variable delineates experimental groups.

I keep receiving the error message that:



The input file:

I have tried increasing the MCONVERGENCE, and the number of iterations, but nothing changes. If anyone can help, I would certainly appreciate it. Thank you!
 Linda K. Muthen posted on Monday, August 11, 2014 - 10:25 am
Please send the output and your license number to
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message