[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 the

Re: [R] Comparing proportions between groups

2008-03-28 Thread Lila86
: > > > Lila86 wrote: >> >> I have two groups (men and women) and I know per group how many of them >> smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to >> know how I can compare in R if men and women differ significantly in >> their smoking.

[R] Comparing proportions between groups

2008-03-28 Thread Lila86
Hello there, I have two groups (men and women) and I know per group how many of them smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to know how I can compare in R if men and women differ significantly in their smoking. However, because there are more men in the sample than