You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the degrees of freedom for fixed and labeled loadings. If a loading is labeled and fixed, the degrees of freedom are not updated compared to the fit with the loading unfixed. If the fixed loading is not labeled, there is no problem:
When fitting this model with sem_fit(model_2) I get a warning that I'm using a labeled constant. However, I can also extract the df before fitting the model, in which case I don't get the warning. In either case, I found this a bit counterintuitive, in lavaan both is possible:
I'm not sure how to proceed - internally, we label all fixed parameters as :const and reserve that label for fixed parameters. So we could either allow for labeled fixed parameters, or throw an error on model construction. @nickhaf is there actually a use case for labeled & fixed parameters?
I played around with a "relaxed lasso" implementation when I noticed this issue. For this very niche application it might be helpful to be able to label and fix parameters, but even here it is definitely not necessary. So in my opinion throwing a clear error message would be enough for now.
I have a question regarding the degrees of freedom for fixed and labeled loadings. If a loading is labeled and fixed, the degrees of freedom are not updated compared to the fit with the loading unfixed. If the fixed loading is not labeled, there is no problem:
Just fixed, not labeled
Fixed and labeled
When fitting this model with
sem_fit(model_2)
I get a warning that I'm using a labeled constant. However, I can also extract the df before fitting the model, in which case I don't get the warning. In either case, I found this a bit counterintuitive, in lavaan both is possible:Lavaan
The text was updated successfully, but these errors were encountered: