dr-JT / semoutput

Create nice looking output for CFA and SEM analyses using lavaan and semPlot packages
https://dr-jt.github.io/semoutput/
19 stars 3 forks source link

Standardized correlation error #2

Closed BTunca closed 5 years ago

BTunca commented 5 years ago

Hi again!

I was running a two factor model and noticed that the sem.factorcor function returns the nonstandardized coefficient. I tried with and without the "standardized" argument:

sem.factorcor(fit, factors = factors, standardized = TRUE)

Here are the outputs from the sem.factorcor, lavaan summary function, and the semplot. I wonder if it is a two-factor issue because in your example it works fine.

Thanks for the help!

All best, Burak

screenshot_2 screenshot_1

dr-JT commented 5 years ago

Yep you are right, I had it reporting the unstandardized estimates. In my example the standardized and unstandardized estimates were equivalent because I set the factor variances to be equal to 1.

I have made the changes so that it should report the standardized estimate now. Let me know if it works for you.

Thanks for catching this!

BTunca commented 5 years ago

Thank you works great!