MplusAutomation issues with models 3-6

42 views
Skip to first unread message

Eleanor Braithwaite

unread,
Jul 4, 2024, 12:50:15 PM7/4/24
to tidyLPA
Hi, 

Firstly, thanks in advance for your help and apologies if I have provided not enough/ too much info - I am new to posting so have tried to be clear but please let me know if I should provide something else. 

I am trying to run LPAs using MplusAutomation for each of the different possible variance-covariance structures (i.e. models 1-6). These will run fine for models 1 and 2 but not for models 3-6. Whilst I understand it is possible that none of the models for model structures 3-6 converge, I am suspicious that this is not the case here and that these are not running due to other reasons. I previously only had Mplus Demo installed and understood this mean I could only for models 1 and 2, but I now have Mplus base package plus mixture add-on installed so believe this should work for all models. I suspect that the issues I am getting for models 3-6 relate to this but am now sure how to check or resolve this issue. 

My questions are:
- Am I correct in my thinking that Mplus Demo would not work for model structures 3-6? And should this be resolved by having Mplus base package plus mixture add-on?
- If yes, is there a way to check which version of Mplus R is using? Mplus demo version should no longer be installed but I'm a little concerned that R is still somehow trying to use it.
- How likely is it that models 1 & 2 would run fine but not models 3-6? 

I am basically trying to determine whether the results I am receiving are 'correct' (i.e. down to convergence issues) or if they are due to a script issue (I very much suspect the latter due to the warnings I receive!). Please see below for my script and the errors/ warnings I am receiving.

---------------------------------------------------------------------------------------------------------------
#Running LPA using model 2 (get similar output formodel 1)
lpa2 <- data[]%>%
  select(Flanker, DCCS, WM)%>%
  estimate_profiles(1:7,
                    package='MPlusAutomation',
                   ANALYSIS = "estimator = mlr;
                    type = mixture;
                    starts = 400 50;
                    processors = 10;
                    lrtstarts = 2 1 50 10;",
                    OUTPUT= "sampstat residual tech11 tech14;",
                    models = 2)

Returns the following:
- The 'variances'/'covariances' arguments were ignored in favor of the 'models' argument.
- Warning message: One or more analyses resulted in warnings! Examine these analyses carefully: model_2_class_1, model_2_class_2, model_2_class_3, model_2_class_4, model_2_class_5, model_2_class_6, model_2_class_7: 
(I realise these warnings aren't necessarily ideal but I think I understand what they mean/ why I get them so am not overly concerned about these)
----------------------------------------------------------------------------------------------------------------
#Run LPA using model 3 (get similar output for models 3-6)
lpa3 <- data[]%>%
  dplyr::select(Flanker, DCCS,WM)%>%
  estimate_profiles(1:7,
                    package='MPlusAutomation',
                    ANALYSIS = "estimator = mlr;
                    type = mixture;
                    starts = 200 50;
                    processors = 10;
                    lrtstarts = 2 1 50 10;",
                    OUTPUT= "sampstat residual tech11 tech14;",
                    models = 3)

Returns:
- The 'variances'/'covariances' arguments were ignored in favor of the 'models' argument.
- Warning messages:
1: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_1.inp"' had status 1
2: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\ " && "Mplus" "model_3_class_2.inp"' had status 1
3: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_3.inp"' had status 1
4: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_4.inp"' had status 1
5: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_5.inp"' had status 1
6: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_6.inp"' had status 1
7: In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
  running command 'C:\WINDOWS\system32\cmd.exe /c cd "C:\Users\" && "Mplus" "model_3_class_7.inp"' had status 1
8: One or more analyses resulted in warnings! Examine these analyses carefully: model_3_class_1, model_3_class_2, model_3_class_3, model_3_class_4, model_3_class_5, model_3_class_6, model_3_class_7 

It is warning messages 1 to 7 here that I am struggling to understand/ resolve. Very grateful for any help/ advise you can share. Thank you. 

Reply all
Reply to author
Forward
0 new messages