[R] testing effects of quantitative predictors on a categorical response variable

2004-06-09 Thread Avril Coghlan
Hello, I have a small statistics question, and as I'm quite new to statistics and R, I'm not sure if I'm doing things correctly. I am looking at two quantitative variables (x,y) that are correlated. When I divide the data set according to a categorical variable z, then x and y are more

Re: [R] testing effects of quantitative predictors on a categorical response variable

2004-06-09 Thread jferrer
Hi Avril, I'm not sure what you want to show. Do you want to know the effects of each variable? or just predict when you get z=A and when z=B? In the latter case, I think that, if x and y are in the same units, you could simply try w - y-x glm1 - glm(z ~ w,family=binomial(),trace=T) Hope it