Re: [R] Diverging results with SPSS

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 07 Jul 2006 - 21:28:57 EST

"Celso Barros" <celso.barros@gmail.com> writes:

> Dear List,
>
> I apologize in advance if this is silly. I tried to replicate an analysis I
> did previously in SPSS using R, and was surprised to find different results.
>
>
> So my question is: shouldn't the following SPSS syntax
>
>
> REGRESSION
>
> DEPENDENT INC89
>
> /METHOD=ENTER hiedyrs experien SE93rec.
>
> Yeld the same results of the following R command
>
> modelB<-lm(INC89~HIEDYRS+EXPERIEN+SE93REC)

Possibly, if all variables are quantitative.

What are the differences that you see?  

>
> I assume the is some difference in some default options.Or maybe it was a
> problem when the data was imported. After using the read.spss in the foreign
> package, I got the following warning message:
>
> Unrecognized record type 7, subtype 16 encountered in system file

You might check whether your variables have the same summary statistics in both systems.  

> Thanks in advance for the help and apologies for the trouble,
>
>
> Celso
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jul 07 21:32:54 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 Sat 08 Jul 2006 - 00:15:11 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.