CFA can be found

25 views
Skip to first unread message

anaine...@gmail.com

unread,
Sep 1, 2020, 7:15:33 AM9/1/20
to lavaan
Dear all

I can't use the cfa fuction, R can't find the cfa fuction. 

> fit_model1<-cfa(model1, data=SCQ, estimator="MLM")
Error in cfa(model1, data = SCQ, estimator = "MLM") : 
  no se pudo encontrar la función "cfa"

Then I checked lavaan in my library, and I got this error: 

> library(lavaan)
Error: package or namespace load failed for ‘lavaan’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘mnormt’
Además: Warning message:
package ‘lavaan’ was built under R version 3.6.3 

Any help?

Many thanks in advance!

anaine...@gmail.com

unread,
Sep 1, 2020, 7:29:30 AM9/1/20
to lavaan
I should've said, CFA can not be found

Edward Rigdon

unread,
Sep 1, 2020, 8:29:17 AM9/1/20
to lav...@googlegroups.com
Did you download ("install") lavaan from CRAN? If you have done this previously, you might try updating, or reinstalling.


--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/fb28e2e9-123d-40da-8b35-5a8b7aa1deb6n%40googlegroups.com.

Yves Rosseel

unread,
Sep 1, 2020, 9:35:29 AM9/1/20
to lav...@googlegroups.com
> package ‘lavaan’ was built under R version 3.6.3

This is the problem. You need to upgrade to R 4.0.2 (the current
version). The reason is that the mnormt packages was recently updated,
and now requires R > 4.0.0.

lavaan currently depends on mnormt, although I plan to drop this
dependency in an next update (exactly for this reason).

Yves.
Reply all
Reply to author
Forward
0 new messages