Error in getMethod(“summary”, signature = “FitDiff”)
问题 I am comparing lavaan objects using semTools::compareFit . It is throwing a very strange error message. I tried also the following reproducible example: data("HolzingerSwineford1939",package="lavaan") HS.modelA <- ' visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9' HS.modelB<- ' visual =~ x1 + x2 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9' fit.A<- cfa(HS.modelA, data = HolzingerSwineford1939) fit.B<- cfa(HS.modelB, data = HolzingerSwineford1939) semTools::compareFit(fit