Contraitn ont he first factor loading.

7 views
Skip to first unread message

Michel Nivard

unread,
Aug 15, 2018, 8:31:30 AM8/15/18
to lavaan
I wish to estimate the following model:



model <- '
F1 =~ NA*V1 + V2
F2 =~ NA*V2

F1 ~ V3
F2 ~V3
V3 ~~ V3

F1~~1*F1 
F2~~1*F2 
F1~~0*F2 


V1~~0*V1 
V2~~0*V2 
V1~~0*V2
'

I estimate this model for many variable V1, and since the sign of somw of the loadings in this model is arbirtary I want to contrain all of these to be positive:


F1 =~ NA*V1 + V2
F2 =~ NA*V2


How would I make sure lavaan estimates the loading for the first incdicator AND I can constain it to > 0.0001?


Best,
Michel

Edward Rigdon

unread,
Aug 15, 2018, 9:23:20 AM8/15/18
to lav...@googlegroups.com
You can mention a variable twice--the parser figures this out. So you can write:
F1 =~ NA*V1 + a*V1 + b*V2  

and then use constraints to limit the range of a and b
a > 0
b > 0

See:



--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages