On 09/11/2014 09:39 PM, Jared Harpole wrote:
> HS.model.neg <- 'visual =~ -1*NA*x1 + x2 + x3
You can not use the modifier '*' twice. But you can repeat the rhs
element, each time with a different modifier. So you can write:
visual =~ NA*x1 + x2 + x3 + start(-1)*x1
Now, this will 'free' up the first factor loading, and suggest -1 as a
starting value. But the starting values for the other two indicators
will still be positive (+1). So, if you really want to flip the signs,
you may need two negative starting values:
HS.model.neg <- 'visual =~ NA*x1 + start(-1)*x2 + x3 + start(-1)*x1
textual =~ NA*x4 + start(-1)*x5 + x6 + start(-1)*x4
speed =~ NA*x7 + start(-1)*x8 + x9 + start(-1)*x7
visual~~1*visual
textual~~1*textual
speed~~1*speed'
fit1 <- cfa(HS.model.neg,
data = HolzingerSwineford1939)
summary(fit1)
gives:
Estimate Std.err Z-value P(>|z|)
Latent variables:
visual =~
x1 -0.900 0.081 -11.127 0.000
x2 -0.498 0.077 -6.429 0.000
x3 -0.656 0.074 -8.817 0.000
textual =~
x4 -0.990 0.057 -17.474 0.000
x5 -1.102 0.063 -17.576 0.000
x6 -0.917 0.054 -17.082 0.000
speed =~
x7 -0.619 0.070 -8.903 0.000
x8 -0.731 0.066 -11.090 0.000
x9 -0.670 0.065 -10.305 0.000
Yves.