[R] SEM with a categorical predictor variable
Lila86
Lila234 at hotmail.de
Tue Apr 1 23:32:04 CEST 2008
Hi,
we are trying to do structural equation modelling on R. However, one of our
predictor variables is categorical (smoker/nonsmoker). Now, if we want to
run the sem() command (from the sem library), we need to specify a
covariance matrix (cov). However, Pearson's correlation does not work on the
dichotomous variable, so instead we produced a covariance matrix using the
Spearman's (or Kendalls) correlation method, which works.
Running the sem() command on our model using that covariance matrix works
fine, but I am not sure if it was okay to make the covariance matrix using
Spearman or Kendall. Can we interpret the regression coefficients that we
find in summary(sem) just as if we had used Pearsons correlation in the
covariance matrix? Or is there any other way to define a SEM including
categorical variables without using a covariance matrix?
I appreciate every help. Thank you very much,
Vera
--
View this message in context: http://www.nabble.com/SEM-with-a-categorical-predictor-variable-tp16425959p16425959.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list