Re: [Rd] foreign(read.spss) in rw2000 and re2001beta

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sun 07 Nov 2004 - 03:13:10 EST

Kjetil Brinchmann Halvorsen <kjetil@acelerate.com> writes:

> I made a test file test.sav with SPSS version 11.5.1
> containing only one numeric variable, with a value label
> for one value not occuring in the file. According to ?read.spss
> this should result in a factor, but it results in all NA.

Er, what do you mean "all NA"? If the only factor level corresponds to a value that isn't present, wouldn't you expect to get a factor with one level and all values missing? What does str() say about the resulting object?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun Nov 07 03:22:02 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:01:08 EST