Message/Author 

Anonymous posted on Friday, October 29, 1999  11:45 am



What should I do when my model won't converge? 


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? 


You can try half of the sample variance. 


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! 


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? 


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. 


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 betweenlevel residual variances that are very small to zero. You can send the output and data for the factor model to support@statmodel.com if you want a more definitive answer. 

Anonymous posted on Thursday, July 07, 2005  3:08 pm



Hello although I have experience with onelevel SEMs, I am new to MPLUS and twolevel 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 betweenmodel 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 withinonly 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 2level modeling efforts to diagnose this. Please send your input, output, data, and license number to support@statmodel.com. 

Marc posted on Wednesday, October 26, 2005  1:46 am



Hello, I would like to use the "TYPE=TWOLEVEL"option in order to create a pooledwithingroupcorrelationmatrix. 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 pooledwithingroupcorrelationmatrix doesn´t converge due to a nonpositive covariancematrix. I tried to use the varianceestimations 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. 


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. 


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 support@statmodel.com, 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 34 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? Thanks 


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 betweenlevel 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 support@statmodel.com. 


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: THIS IS MOST LIKELY DUE TO HAVING MORE PARAMETERS THAN THE NUMBER OF CLUSTERS. I have tried variations on the model, but continue to get this message. Could you advise regarding this error message? Thank you so much, Angela 


The message you receive is not due to nonconvergence. 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 support@statmodel.com. 


Will do, thank you Linda. 


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 


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. 


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? 


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! 


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. %within% x_with by ind_x; ind_x@0.1, %between% x_bet by ind_x; ind_x@0; 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, Martin 


Please send the relevant files and your license number to support@statmodel.com. Be sure you are using Version 6.11. 


Hello, 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. 


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 support@statmodel.com. 


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. 


Hi, I'm new to MPlus and twolevel modelling and am trying to specify a twolevel 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 ZAGENCYmediated relationship between ZFUSION and ZLEADING. The GROUP variable delineates experimental groups. I keep receiving the error message that: THE LOGLIKELIHOOD DECREASED IN THE LAST EM ITERATION. CHANGE YOUR MODEL AND/OR STARTING VALUES. THE MODEL ESTIMATION DID NOT TERMINATE NORMALLY DUE TO AN ERROR IN THE COMPUTATION. CHANGE YOUR MODEL AND/OR STARTING VALUES. The input file: https://www.dropbox.com/s/f8lifkiawu5gm16/Multilevel%20mediationICG.inp Data: https://www.dropbox.com/s/rrvoghy9uft30u1/ICG.dat 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! 


Please send the output and your license number to support@statmodel.com. 


Dear professor Muthen, I m trying to compute a multilevel CFA: TITLE: twolevel CFA with continuous factor indicators DATA: FILE IS ROMdatamissing.dat; VARIABLE: NAMES ARE g1 clus y1y25; USEVARIABLES ARE clus y1y25; Missing = *; CLUSTER = clus; ANALYSIS:TYPE = TWOLEVEL RANDOM; ALGORITHM=EM; MODEL: %WITHIN% fw1 BY y1y10; fw2 BY y11y25; %BETWEEN% fb1 BY y1y10; fb2 BY y11y25; But the output does not converge THE ESTIMATED BETWEEN COVARIANCE MATRIX IS NOT POSITIVE DEFINITE AS IT SHOULD BE. COMPUTATION COULD NOT BE COMPLETED. PROBLEM INVOLVING VARIABLE Y11. THE CORRELATION BETWEEN Y11 AND Y3 IS 1.000 THE CORRELATION BETWEEN Y12 AND Y3 IS 1.003 THE CORRELATION BETWEEN Y24 AND Y3 IS 1.006 THE RESIDUAL CORRELATION BETWEEN FB2 AND FB1 IS 1.006 THE PROBLEM MAY BE RESOLVED BY SETTING ALGORITHM=EM AND MCONVERGENCE TO A LARGE VALUE. THE MODEL ESTIMATION DID NOT TERMINATE NORMALLY DUE TO AN ERROR IN THE COMPUTATION. CHANGE YOUR MODEL AND/OR STARTING VALUES. THE H1 MODEL ESTIMATION DID NOT CONVERGE. SAMPLE STATISTICS COULD NOT BE COMPUTED. INCREASE THE NUMBER OF H1ITERATIONS. Can you please tell me how to resolve the problem? 


Please send the output and your license number to support@statmodel.com. 


I am running a multilevel CFA (49 variables and 6 factors). When I run the input file, is looks like the analysis is in progress but it never shows an output file. I this a sign of nonconvergence? If so, what could be the reason? Thank you 


Please send the input, data, and your license number to support@statmodel.com. 

Back to top 