Re: [R] SEM with a categorical predictor variable

2008-04-02 Thread John Fox
Of Lila86 Sent: April-01-08 5:32 PM To: r-help@r-project.org Subject: [R] SEM with a categorical predictor variable 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

[R] SEM with a categorical predictor variable

2008-04-01 Thread Lila86
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