I am trying to create a CFA model in lavaan and I do not know how to constrain some parameters
I need for instance the covariance between some observed items to be negative whilst in other cases I need it to be positive
In addition I need to constrain error for items to be the sum of ψ's (e.g. Ψ 2 7 + Ψ 2 8)
As I understand it a CFA can be created in that way
model<-' η2=ψ4 5 + ψ5 6 + ψ7 8 + ψ8 9
η3=ψ4 6 + ψ7 8 + ψ7 8 + ψ7 8
η2~~1*η2
η3~~1*η3
# how I define constraints for negative covariances between items?
# how I define uniqueness so that is equal to sum of 2 utility uniqunesses
'