[R] probability values ?

orkun temiz at deprem.gov.tr
Tue Jun 17 09:04:34 CEST 2003


Hello

I try to find probability values of some predictor combinations using 
logistic reg. in response level.
Firstly I found coefficients by glm function.
Then I followed two ways to get probability values:
1- probility <- exp(X0+bX1+cX2+...)/((1+exp(X0+bX1+cX2+...))
2- probility <- predict(glm.obj,type="resp")

Should have these two given same result ?
if so, I did not have. Why ?

Does anyone have any idea ?

thanks in advance

Ahmet Temiz
TURKEY


______________________________________



______________________________________
The views and opinions expressed in this e-mail message are the ... {{dropped}}




More information about the R-help mailing list