Hi
I am teaching an introductory class on statistical research methods. I have an example written in R, which I would like to show with Stata as well. I am fitting a CFA model to covariance matrix and the example should produce a Heywood case. This works well with the Lavaan package for R. However, when I do this same example in Stata, the model fails to converge and all variance estimates in the non-convergent models are positive. The non-convergence is related to including a factor that should produce the heywood case.
Is the optimizer in sem constrained to produce only admissible estimates? If so, is there a way to get it to produce Heywood cases?
Running Stata 13 on Mac.
I am attaching the R code, the estimates produced by Lavaan in R, and the Stata do-file for the example.
Mikko
I am teaching an introductory class on statistical research methods. I have an example written in R, which I would like to show with Stata as well. I am fitting a CFA model to covariance matrix and the example should produce a Heywood case. This works well with the Lavaan package for R. However, when I do this same example in Stata, the model fails to converge and all variance estimates in the non-convergent models are positive. The non-convergence is related to including a factor that should produce the heywood case.
Is the optimizer in sem constrained to produce only admissible estimates? If so, is there a way to get it to produce Heywood cases?
Running Stata 13 on Mac.
I am attaching the R code, the estimates produced by Lavaan in R, and the Stata do-file for the example.
Mikko
Comment