Re: [R] Different result of multiple regression in R and SPSS

2011-07-21 Thread David Winsemius
On Jul 19, 2011, at 7:19 PM, J. wrote: @Dimitri: I tried to enter it as numeric and still got the same outcome. I still wonder if there is any way to get the same result from both programs. @David, Bert: Yes, I found that the gender coefficient is R is exactly twice that of the one from S

Re: [R] Different result of multiple regression in R and SPSS

2011-07-20 Thread Bert Gunter
On Tue, Jul 19, 2011 at 4:19 PM, J. wrote: > @Dimitri: I tried to enter it as numeric and still got the same outcome. I > still wonder if there is any way to get the same result from both programs. There is. ?C ?contrasts But of course you must do your homework to understand how to use these. (S

Re: [R] Different result of multiple regression in R and SPSS

2011-07-20 Thread Heinz Tuechler
At 19.07.2011 18:50 -0700, Spencer Graves wrote: On 7/19/2011 4:04 PM, Bert Gunter wrote: On Tue, Jul 19, 2011 at 3:45 PM, David Winsemius wrote: On Jul 19, 2011, at 6:29 PM, J. wrote: Thanks for the answer. # However, I am still curious about which result I should

Re: [R] Different result of multiple regression in R and SPSS

2011-07-20 Thread J.
I finally got the same result by converting "gender" variable as numeric, and standardize it. I guess SPSS automatically doing the same thing when doing analysis. But, it still is not clear to me how I can interpret "standardized categorical (dummy coded)" variable. I'd rather stick to use R. Thank

Re: [R] Different result of multiple regression in R and SPSS

2011-07-20 Thread J.
@Dimitri: I tried to enter it as numeric and still got the same outcome. I still wonder if there is any way to get the same result from both programs. @David, Bert: Yes, I found that the gender coefficient is R is exactly twice that of the one from SPSS. Need to study on parametrization. Thanks, J

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Daniel Malter
First, it would have helped if you had posted the actual results for us to see how far they are off (and, more specifically, by which factor). Second, given your epiphany, you will find that that's exactly what David (and others before him) said or suggested. It is not about standardizing a nomina

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Spencer Graves
On 7/19/2011 4:04 PM, Bert Gunter wrote: On Tue, Jul 19, 2011 at 3:45 PM, David Winsemius wrote: On Jul 19, 2011, at 6:29 PM, J. wrote: Thanks for the answer. # However, I am still curious about which result I should use? The result from R or the one from SPSS? It

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Mike Marchywka
> From: dwinsem...@comcast.net > To: seoulseoulse...@gmail.com > Date: Tue, 19 Jul 2011 18:45:47 -0400 > CC: r-help@r-project.org > Subject: Re: [R] Different result of multiple regression in R and SPSS > > > On Jul 19, 20

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Bert Gunter
On Tue, Jul 19, 2011 at 3:45 PM, David Winsemius wrote: > > On Jul 19, 2011, at 6:29 PM, J. wrote: > >> Thanks for the answer. >> # >> However, I am still curious about which result I should use? The result >> from >> R or the one from SPSS? > > It is becoming apparent tha

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread David Winsemius
On Jul 19, 2011, at 6:29 PM, J. wrote: Thanks for the answer. However, I am still curious about which result I should use? The result from R or the one from SPSS? It is becoming apparent that you do not know how to use the results from either system. The progress of science would be saf

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Dimitri Liakhovitski
I don't think SPSS does anything with the variables you enter there. Have you entered it as numeric? Have you entered gender as numeric in R? On Tue, Jul 19, 2011 at 6:11 PM, Bert Gunter wrote: > Answer: Contrasts, i.e. the parameterization of the categorical variable(s) > df. > > ?contrasts may

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread J.
Thanks for the answer. However, I am still curious about which result I should use? The result from R or the one from SPSS? Why the results from two programs are different? Jay -- View this message in context: http://r.789695.n4.nabble.com/Different-result-of-multiple-regression-in-R-and-SPSS-t

Re: [R] Different result of multiple regression in R and SPSS

2011-07-19 Thread Bert Gunter
Answer: Contrasts, i.e. the parameterization of the categorical variable(s) df. ?contrasts may be of some help, but you really need to do some background studying of the linear models principles involved. Googling may provide tutorials. Also searching the mail archives, e.g.: https://stat.ethz.ch

[R] Different result of multiple regression in R and SPSS

2011-07-19 Thread J.
Hi, I am trying to do a simple multiple regression analysis that has one nominal variable (gender) and three numeric variables as independent variables and one numeric variable as dependent variable. So, I got a formula like this: summary(out.3 <- lm(scale(DV) ~ gender + scale(IV.1) + scale(IV.2)