Re: [R] factor variables in logistic regression

2016-05-11 Thread Kevin E. Thorpe
On 05/11/2016 08:00 AM, ch.elahe via R-help wrote: Hi all, I have a plot for TSTMean vs. SNRMean and both of these variables are factors. How can I use Logistic Regression for factor variables? Currently I use model=lm(TSTMean~SNRMean,data=df) but when I check summary(model) I get this error:

[R] factor variables in logistic regression

2016-05-11 Thread ch.elahe via R-help
Hi all, I have a plot for TSTMean vs. SNRMean and both of these variables are factors. How can I use Logistic Regression for factor variables? Currently I use model=lm(TSTMean~SNRMean,data=df) but when I check summary(model) I get this error: r error in quartile.default (resid) factors are not