Hi All,
I've come across an error when trying to do the following model:
my.data<-data.frame(A=A,C=C,D=D)
my.model<-"
C~D
A~C+D
"
fit.mine<-sem(my.model,data=my.data,fixed.x=FALSE, std.ov = TRUE)
Produces this error:
Error in cov(eXo[[g]], use = "pairwise") :
supply both 'x' and 'y' or a matrix-like 'x'
The error disappears when std.ov is set to false, but this is not ideal.
I have also tried decostand(my.data, method="standardize") from vegan and while that will compute, it gives strange results when that matrix is put into lavaan.
Thanks very much for insight,
Michael