On 01/03/2013 12:53 AM,
hans.e...@gmail.com wrote:
> I have a data set with many ordered factors. I have sucessfully used
> lavaan 0.4-14 on this set (as far as I understand lavaan 0.4-14 treats
> ordered factors as numerics and that's OK for me, even if it's not optimal).
>
> lavaan 0.5-10 simple refuses to do sem() with the same set and the same
> model
But it is not the same analysis. 0.5-10 'detects' that many of your
(dependent) variables are 'ordered', and treats them as such. To get
back the original (0.4-14) analysis, you should convert those variables
back to 'numeric'.
> The error message given is:
>
> Error in lm.fit(y = y, x = X) : NA/NaN/Inf in 'x'
>
> There are quite some NA, but no NaN nor Inf, and cases with NA is, by
> default excluded from the analysis, so what is the problem here?
The error occurs when computing the polychoric/polyserial correlations.
I would need to see the data to figure out why.
> I can provide the data, or at least a sample, if needed.
Could you first update and install the current version of lavaan
(0.5-11)? If the error persists, please send me a snippet of the data,
and your model script, so I can reproduce the error.
Yves.