Skip to content

Assistance with data import from Statistica

6 messages · Steve Burgess, Christian Schulz, Uwe Ligges +1 more

#
I'm never work with Stats but 
IMHO you find in library(foreign)  all what you need.

cheers,christian

Am Sonntag, 1. Februar 2004 09:39 schrieb Steve Burgess:
#
oops , sorry i'm misreading you mean statistica not stata.
So i only have the notice that  the command-line utility
dataload is very usefuel.

One possible download is here:
http://www.steepturns.com/filedown/dataload.zip

,but i remember there exist a newer version which
could handle  *.Rdata files, too , but isn't downloadable from the original 
site at present!?

cheers, christian






Am Sonntag, 1. Februar 2004 09:39 schrieb Steve Burgess:
#
Steve Burgess wrote:
What about using a database? (or ASCII files if nothing else works...)

Uwe Ligges
#
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
I suspect that was what Steve was trying to avoid...

According to our documentation, read.spss *should* be able to read
.por files:

    'read.spss' reads a file stored by the SPSS 'save' and 'export'
     commands and returns a list.

(and EXPORT is the SPSS for creating portable files).

Whether this is actually true and whether it also applies to labels,
should be worth an experiment to find out... Our code is based on the
PSPP code by Ben Pfaff and that seems to have deciphered the file
format ( http://www.gnu.org/software/pspp/manual/pspp_toc.html )
pretty well, but we may not have lifted enough of the code for
portable files.

        -p
#
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
Action speaks louder than words:
[1] "ID"       "EMPLYEE"  "SMSKEY"   "SMSTZONE" "SMSSTATE" "SMSCNTY"
 [7] "SMSCD"    "SMSMSA"   "SMSREP"   "SMSSTRTA"
ID
              "Pre-election Respondent ID"
                                   EMPLYEE
             "Pre-election Interviewer ID"
                                    SMSKEY
                         "Sample Record $"
                                  SMSTZONE
                  "Pre-election Time Zone"
                                  SMSSTATE
            "Pre-election FIPS State Code"
                                   SMSCNTY
           "Pre-election FIPS County code"
                                     SMSCD
"Pre-election FIPS Congressional District"
                                    SMSMSA
              "Pre-election FIPS MSA Code"
                                    SMSREP
                                        ""
                                  SMSSTRTA
                                  "Strata"
ID                        EMPLYEE
  "Pre-election Respondent ID"  "Pre-election Interviewer ID"
                        SMSKEY                       SMSTZONE
             "Sample Record $"       "Pre-election Time Zone"
                      SMSSTATE
"Pre-election FIPS State Code"
[1] "Pacific"  "Mountain" "Eastern"  "Central"

...etc...