'Struggling with bifactorIndices

I need to obtain IECV, ECV, Omega, Omega H, Relative Omega, H and FD from my data. I'm trying to follow this example : https://www.rdocumentation.org/packages/BifactorIndicesCalculator/versions/0.2.2/topics/bifactorIndices

UnidimensionalModel <-"gen =~ item1 + item3 + item5 + item6 + item2 + item4 + item7 + item8 + item9 + item10 + item11 + item12 + item16 + item13 + item14 + item15 + item17"
Unidimensional <- lavaan::cfa(UnidimensionalModel,
datcfa,
ordered =  TRUE,
orthogonal = TRUE)

BifactorModel <-
"category1 =~ item1 + item3 + item5 + item6 
category2 =~ item2 + item4 + item7 + item8 + item9
category3 =~ item10 + item11 + item12 + item16
category4 =~ item13 + item14 + item15 + item17
gen =~ item1 + item3 + item5 + item6 + item2 + item4 + item7 + item8 + item9 + item10 + item11 + item12 + item16 + item13 + item14 + item15 + item17"
bifactor <- lavaan::cfa(BifactorModel,
datcfa,
ordered = TRUE,
orthogonal = TRUE)
bifactorIndices(bifactor, UniLambda = Unidimensional)

The thing is, I can't get ECV, Omega, Omega H, Relative Omega, H and FD for categories 3 and 4 (NaN error), and for some items, IECV = 1.

Can you help me ? Thanks alot

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source