Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

readModels not reading EFA fit statistics

36 views
Skip to first unread message

Whitney Ringwald

unread,
Jul 18, 2023, 5:12:01 PM7/18/23
to MplusAutomation
Hello,

For some reason, the readModels function is not extracting model fit indices from my EFA models anymore.  There are global fit indices in the Mplus output.  My code worked ~4 months ago...so I don't know if it's because I updated R or Mplus insce then, but I'm using the latest version of both.  I also re-downloaded the latest version of MplusAutomation off of Github.  

My code:

fit = readModels("~/Documents/models/output.out", what = "summaries")

The error message is:

<simpleError in !is.null(arglist$Parameters) && !is.na(arglist$Parameters): 'length = 9' in coercion to 'logical(1)'>

And when I do not specify "summaries" and get all the output, the summaries part of the mplus.model object is empty.  

Anyone else having this problem?  Any ideas of how to fix it?

Thanks!
Whitney

michael.hallquist

unread,
Jul 20, 2023, 10:36:41 AM7/20/23
to MplusAutomation
Hi Whitney,

I think this error cropped up with the shift to R 4.3+, where R now objects when a logical test in an if statement is applied to a vector -- here is.na() is returning multiple results since the EFA list has many outputs (one per number of factors). Anyhow, I believe this was fixed a few days ago in the development version of the package, which you can install using: devtools::install_github("michaelhallquist/MplusAutomation"). I plan to roll out this and some other fixed to CRAN in September.

Best,
Michael

Reply all
Reply to author
Forward
0 new messages