ecmerkle/blavaan

blavFitIndices & multiple groups

ecmerkle opened this issue · 1 comments

@maugavilla @TDJorgensen I believe there is a small issue with counting parameters, around the line referenced below. Basically, there is a variable "nvar" that I think is assumed to be a single number, but it contains multiple numbers when there are multiple groups (the value is being pulled from object@Model@nvar). It is also used in bgammahat and other computations, and I am not immediately sure whether you intended multiple values there. So I think either of your eyes would be helpful!

p <- ((nvar * (nvar + 1)) / 2)

One other thing: lavaan 0.6-13 does some robust fitMeasures computations, and there is a bug that leads to some errors here. It goes away if you use the github version of lavaan.

@ecmerkle I will check on this soon