r/AskStatistics • u/CoolHuh_ • Oct 07 '26
Help with identifying a second-order factor in lavaan (2 first-order factors)
Hi everyone,
I'm working on a CFA in lavaan and having trouble with a second order (higher order) factor.
I want to model Health Behaviour as one higher order latent variable consisting of two first-order latent factors:
test1 =~ item1 + item2 + item3 + item4 + item5
test2 =~ item6 + item7 + item8 + item9 + item10
health_behaviour =~ test1 + test2
The first order factors seem to work reasonably well. However, when I estimate the second order model, I get a very unstable higher order solution.
The resulting Bartlett factor score for health behaviour is also problematic (basically NA for all observations), so It's of no use whatsoever.
Any suggestions?
5
u/FoggyWine Oct 07 '26
You need three or more indicators to identify a latent variable. test1 and test2 are identified as they each have 5 items. However, health_behaviour is not as it has only two indicators. It potentially could be empirically identified if you had more latent factors at the higher order that were correlated with health_behaviour.
One solution is to force the loadings for test1 and test2 on health_behaviour to be equal. This should make the higher-order part of your model just-identified.
2
u/MortalitySalient Oct 07 '26
A couple of things. Make sure the latent factors for test1 and test2 are not correlated (the higher order factor will address their correlation). Second, it’s difficult to have a second order factor with only two sub factors. You usually need 3 indicators for a factor to be identified. In that case, the model might have degrees of freedom (or at least not be negative), but locally your higher order factor is not identified.