Open nickhaf opened 2 months ago
Thanks a lot for raising this issue, I will have a look!
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.
This should be fixed in the next release. Thanks again for reporting.
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