[R] Logistic Regression - Results?

From: Wojciech Gryc <wojciech_at_gmail.com>
Date: Thu 25 May 2006 - 07:40:55 EST


I use SPSS at work and have R installed both at work and on my home machine. I've been trying to do some logistic regressions in R and SPSS, but the results I'm getting are different. I've followed a few R tutorials, and with most of them, I get the following instructions:

result <- glm(z ~ x + y, family=binomial(logit))

In the case above, with three variables (z being dependent).

In SPSS, I'm told to use Analyze -> Regression -> Binary Logistic, where I put x, y in "Covariates" and z in "Dependent". Note that my values for x and y are either 1 or 0.

The results I get from these two tests are different, however, and I was wondering why. Am I choosing the wrong commands? If not, why are the results different? Any help would be greatly appreciated, and please note that I have a limited amount of stats knowledge.



Five Minutes to Midnight:
Youth on human rights and current affairs

	[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu May 25 08:10:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 May 2006 - 18:10:32 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.