Hi everybody,
As I received the warning message "some estimated variances are negative", I tried to fix the (residual) variance of item narq14.y to zero. Item narq14.y had the negative variance.
However, the variance remains negative for item 14. How can I fix the variance to zero?
Any other idea what I could do to get rid of the negative variance?
Here is the code (all items are specified as categorical variables):
RIV.RIV.STAI.model<- '
riv_d.x =~ narq13.x + narq14.x + narq17.x
riv_s.x =~ narq6.x+ narq9.x + narq10.x
riv_a.x =~ narq4.x + narq11.x + narq12.x
RIV.men =~ riv_s.x+riv_d.x+riv_a.x
riv_d.y =~ narq13.y + narq14.y + narq17.y
riv_s.y =~ narq6.y + narq9.y + narq10.y
riv_a.y =~ narq4.y + narq11.y + narq12.y
RIV.women =~ riv_s.y+riv_d.y+riv_a.y
STAI.women =~ STAI4.y+ STAI2.y+ STAI3.y+ STAI1r.y+ STAI5.y+ STAI6r.y+ STAI7r.y+ STAI8.y+ STAI9.y+ STAI10r.y+ STAI11.y+ STAI12.y+ STAI13r.y+ STAI14.y+ STAI15.y+ STAI16r.y+ STAI17.y+ STAI18.y+ STAI19r.y+ STAI20.y
RIV.men ~ RIV.women + STAI.women
narq14.y ~~ 0*narq14.y'
RIV.RIV.STAI.fit <- cfa(RIV.RIV.STAI.model,Couples,meanstructure=T,zero.cell.warn=F,
std.lv=TRUE)