Error when calling summary(lavaan.mi object, fit.measures=TRUE) - was previously working fine

478 views
Skip to first unread message

Ben Evans

unread,
Jan 13, 2023, 3:09:50 PM1/13/23
to lavaan
I have workspaces saved for several models that I am rerunning to record the results. As of around 10 days ago, calling the summary for these objects (all lavaan.mi objects) worked perfectly fine with no errors. As of this afternoon (13th January), I am getting this error for any lavaan.mi object:

--------------------

> summary(fitIPA, rsquare=TRUE, ci=TRUE, fit.measures=TRUE) lavaan.mi object based on 50 imputed data sets. See class?lavaan.mi help page for available methods. Convergence information: The model converged on 50 imputed data sets Rubin's (1987) rules were used to pool point and SE estimates across 50 imputed data sets, and to calculate degrees of freedom for each parameter's t test and CI.

Error in h(simpleError(msg, call)) : error in evaluating the argument 'object' in selecting a method for function 'logLik': argument is of length zero Error during wrapup: no slot of name "block.label" for this object of class "lavData" Error: no more error handlers available (recursive errors?); invoking 'abort' restart

-------------------

I am somewhat perplexed as this was working fine previously. I am aware there has been an update earlier today, and am wondering if it is somehow linked to that?

Any advice is greatly appreciated,
Ben

Terrence Jorgensen

unread,
Jan 18, 2023, 7:52:47 AM1/18/23
to lavaan
Was fitIPA created in a previous R session, using an older version of lavaan or semTools?  It is hard to predict what changes caused your specific error.  I can see that changes in lavaan 0.6-13 will interrupt some lavaan.mi functionality (e.g., can't currently call summary() with fit.measures=TRUE, until I add the new fit.args= argument).  In February, I am hoping to finalize the new lavaan.mi package, to deprecate runMI() in semTools.  I will be testing it using the newest lavaan, so hopefully this error will be resolved by re-running your models in the new package.  It may already help to re-run your models using the current semTools and the latest lavaan, because semTools uses lavaan to fit models to each data set and extract certain results.

Terrence D. Jorgensen    (he, him, his)
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam
http://www.uva.nl/profile/t.d.jorgensen

Yves Rosseel

unread,
Jan 19, 2023, 5:08:22 AM1/19/23
to lav...@googlegroups.com
This is most likely caused by lavaan 0.6-13. You can always 'downgrade'
to a previous version as follows:

library(remotes)
install_version("lavaan", "0.6-12")

Yves.

Ben Evans

unread,
Feb 16, 2023, 8:05:45 AM2/16/23
to lavaan
Apologies for the late reply. I reran models in the newest versions and they worked perfectly again, so it must have been the version upgrade.

Thanks,
Ben

Reply all
Reply to author
Forward
0 new messages