Hello,
 I am trying to create parcels for a CFA model.  I am trying to average 6 sets of 3 variables each into parcels.  I don't understand why I am getting an error message as follows:
Thanks for your help,
Catherine



atds1par <- rowMeans(semHW1dat1[, c("atds1", "atds2", "atds3")], na.rm=TRUE)

atds2par <- rowMeans(semHW1dat1[, c("atds4", "atds5", "atds6")], na.rm=TRUE)

atds3par <- rowMeans(semHW1dat1[, c("atds7", "atds8", "atds9")], na.rm=TRUE)



sgs1par <- rowMeans(semHW1dat1[, c("sgs1", "sgs2", "sgs3")], na.rm=TRUE)

sgs2par <- rowMeans(semHW1dat1[, c("sgs4", "sgs5", "sgs6")], na.rm=TRUE)

sgs3par <- rowMeans(semHW1dat1[, c("sgs7", "sgs8", "sgs9")], na.rm=TRUE)



> parmod1 <- "ProDragATT =~ atds1par + atds2par + atds3par

+ SucInSchl =~ sgs1par + sgs2par + sgs3par

+ ProDragAtt~~SucInSchl"

>

> parout1 <- cfa(parmod1, data=semHW1dat1, sample.nobs=500, std.lv=TRUE)

Error in getDataFull(data = data, group = group, group.label = group.label,  :

  lavaan ERROR: missing observed variables in dataset: atds1par atds2par atds3par sgs1par sgs2par sgs3par ProDragAtt

> summary(parout1)

Error in summary(parout1) :

  error in evaluating the argument 'object' in selecting a method for function 'summary': Error: object 'parout1' not found

> fitMeasures(parout1)

Error in fitMeasures(parout1) : object 'parout1' not found

> inspect(parout1, "mi")

Error in inspect(parout1, "mi") :

  error in evaluating the argument 'object' in selecting a method for function 'inspect': Error: object 'parout1' not found

>


	[[alternative HTML version deleted]]

