Dear All
I have a dataset in which all the relevant variables for my model (SEM) are categorical (all observed variables for measurement model are binary yes/no 1/0 format; one main dependent variable for regression model is ordinal). I have defined the class of these variables as factor.
I am trying to fit the SEM using the covariance matrix. I am able to get the polychoric/tetrachoric correlation (using the polycor package in lavaan) but because the variables are categorical in nature, I am not able to figure out how can I extract covariance from the polychoric correlations obtained one-by-one for two categorical variables that makes it possible to generate one half triangular correlation matrix.
Any hint/advice on this is much appreciated.
Looking forward to hear from someone.
Kind regards
Priya