search for: 18cityscbssorted

Displaying 1 result from an estimated 1 matches for "18cityscbssorted".

2006 Feb 19
2
Converting factors back to numbers. Trouble with SPSS import data
...le values are not easily recovered in R. I'm comparing 2 imported datasets, "eldat" (read.spss with No convert-to-factors) and "eldatfac" (read.spss with convert-to-factors) If I bring in the data without conversion to factors: library(foreign) eldat <- read.spss("18CitySCBSsorted.sav", use.value.labels=F, to.data.frame=T) I can see the variable HAPPY is coded 0, 1, 2, 3. Those are the numbers that SPSS uses as contrast values when it runs a regression with HAPPY. In contrast, allow R to translate the variables with a few value labels into fa...