On 05/04/2014 10:47 PM, Una wrote:
> Hello!
>
> I'm relatively new with structural modeling, and especially with lavaan
> and R. Is there a way to fix a correlation between exogenous latent
> variables to 1? I am aware I could just define a new factor encompassing
> the previous ones, but I would like to explore the issue of equivalent
> models this way. I have tried defining it with the help of equal() and
> the relation of correlation and covariance:
> emp <- 'af =~ 1*E01+E03+E05+E09+E11+E13+E15+E17+E19+E21
> cf =~ 1*E02+E04+E06+E08+E10+E14+E16+E18+E20+E22
> rc =~ 1*E03+E04+E11+E18+E20+E22
> af~~1*sqrt(equal("af~~af")*equal("cf~~cf"))*cf
> cf~~1*sqrt(equal("rc~~rc")*equal("cf~~cf"))*rc'
Try this:
af =~ NA*E01+E03+E05+E09+E11+E13+E15+E17+E19+E21
cf =~ NA*E02+E04+E06+E08+E10+E14+E16+E18+E20+E22
rc =~ NA*E03+E04+E11+E18+E20+E22
# standardized latent variables
af ~~ 1*af
cf ~~ 1*cf
rc ~~ 1*rc
# force unit correlations
af ~~ 1*cf
af ~~ 1*rc
cf ~~ 1*rc
The fit of this model should be identical to a model where you have only
a single factor.
Yves