I am using SAS 9.4 1M6 on a Windows 10 machine. I am doing a confirmatory factor analysis with ordinal variables (Likert type scales, some 1-5 and some 1-7). I first tried doing this with PROC CALIS and an appropriate method. But method = wls gave an error that the weight matrix was singular or not positive definite (I think that my N of 202 is not enough) and method = mlm took a long time to run and produced output that was hard to interpret, so, I decided to work directly with the covariance matrix. My old CALIS code was proc calis data = new method = mlm;
factor
F1 ---> q42 q52 q62 q72,
F2 ---> q41 q51 q61 q71,
F3 ---> q44 q54 q64 q74,
F4 ---> q43 q53 q63 q73,
F5 ---> q46 q56 q66 q76,
F6 ---> q45 q55 q65 q75,
%. ETC;
run; I have now made a correlation data set using: /*CORRELATIONS FOR INPUT TO CALIS*/
proc corr data = new spearman out = johncorr;
var q1-q80;
run; but I am not quite sure how to modify my code to make it work. Do I just change the PROC CALIS statement to have data = johncorr? Or do I need to do more? Should I still include all the factor statements?
... View more