Check if a CFA did not converge

56 views
Skip to first unread message

t.tk...@gmail.com

unread,
Jan 13, 2017, 6:26:05 AM1/13/17
to lavaan
Hello,

I am currently trying to include a section in a script that checks if lavaan actually converged or not. If it does not, all I get is 
** WARNING ** lavaan (0.5-22) did NOT converge after 1079 iterations
But the script keeps on running normally, leading to other errors. Is there a way to check for this? I tried inspect and summary but I couldn't access information that reliably identifies models that did not converge.

Thanks,
Tim 

Terrence Jorgensen

unread,
Jan 13, 2017, 2:19:45 PM1/13/17
to lavaan
I am currently trying to include a section in a script that checks if lavaan actually converged or not. If it does not, all I get is 
** WARNING ** lavaan (0.5-22) did NOT converge after 1079 iterations
But the script keeps on running normally

The syntax to check convergence is 

lavInspect(fit, "converged")

If this returns TRUE for a data set that issues that warning, could you provide the data and script to reproduce the issue so a bug can be found?

Terrence D. Jorgensen
Postdoctoral Researcher, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

t.tk...@gmail.com

unread,
Jan 16, 2017, 3:09:58 AM1/16/17
to lavaan
Thank you so much!
Reply all
Reply to author
Forward
0 new messages