Re: [R] Diverging results with SPSS

From: Florian Koller <>
Date: Fri 07 Jul 2006 - 21:47:08 EST

If results are *very* different, I would suspect that R treated "experien" as a factor (when you use "read.spss" the default is to use value labels, which makes R treat such variables as factors --> set "use.value.labels = F"). Another explanation could be missing data in SPSS (not sysmis, but coded with, say -99) that are not recognized by R.  


Von: im Auftrag von Celso Barros Gesendet: Fr 07.07.2006 07:13
Betreff: [R] Diverging results with SPSS

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


Yeld the same results of the following R command


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

Thanks in advance for the help and apologies for the trouble,


        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide!

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide! Received on Sat Jul 08 03:22:49 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 - 04:15:22 EST.

Mailing list information is available at Please read the posting guide before posting to the list.