[R] CFA with lavaan or with SEM

2013-01-23 Thread David Purves
Hi Sorry for the rather long message. I am trying to use the cfa command in the lavaan package to run a CFA however I am unsure over a couple of issues. I have @25 dichotomous variables, 300 observations and an EFA on a training dataset suggests a 3 factor model. After defining the model I us

Re: [R] CFA with lavaan or with SEM

2013-01-23 Thread David Purves
t;-> f", NA, 1), ncol=3,byrow=T) out<-sem(model.1,S=my.cor,200) model.1 <- specifyEquations() f1 = gam11*a + gam12*b + gam13*c + gam14*d + gam15*e + gam16*g f1 = 1* f1 out<-sem(model.1,S=my.cor,200) But the same error. I would be ver