An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20040201/ed01de82/attachment.pl
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:
I am a new R user attempting to convert files from Statistica to R. I can export from Statistica to SPSS .por format, but not to the SPSS .sav format. Is there a procedure for easily accomplishing this, which will allow me to keep variable short and long labels (big surveys LOTS of time to replace all this work). Many thanks for sharing your time and knowledge. steve Dr Steven M Burgess Associate Director (Research) Professor of Business Administration in Marketing Graduate School of Business University of Cape Town Breakwater Campus, Portswood Road Greenpoint, Cape Town 8001 South Africa Office: Tel +27-21-406-1416, fax +27-21-406-1412 Mobile: Tel +27-83-226-2811 Home: Tel +27-21-791-3423, fax +27-21-791-3425 "Confidentiality: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. I do not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of virus, interception or interference or errors caused by virus, interception or interference." [[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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:
I am a new R user attempting to convert files from Statistica to R. I can export from Statistica to SPSS .por format, but not to the SPSS .sav format. Is there a procedure for easily accomplishing this, which will allow me to keep variable short and long labels (big surveys LOTS of time to replace all this work). Many thanks for sharing your time and knowledge. steve Dr Steven M Burgess Associate Director (Research) Professor of Business Administration in Marketing Graduate School of Business University of Cape Town Breakwater Campus, Portswood Road Greenpoint, Cape Town 8001 South Africa Office: Tel +27-21-406-1416, fax +27-21-406-1412 Mobile: Tel +27-83-226-2811 Home: Tel +27-21-791-3423, fax +27-21-791-3425 "Confidentiality: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. I do not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of virus, interception or interference or errors caused by virus, interception or interference." [[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Steve Burgess wrote:
I am a new R user attempting to convert files from Statistica to R. I can export from Statistica to SPSS .por format, but not to the SPSS .sav format. Is there a procedure for easily accomplishing this, which will allow me to keep variable short and long labels (big surveys LOTS of time to replace all this work). Many thanks for sharing your time and knowledge.
What about using a database? (or ASCII files if nothing else works...) Uwe Ligges
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
Steve Burgess wrote:
I am a new R user attempting to convert files from Statistica to R. I can export from Statistica to SPSS .por format, but not to the SPSS .sav format. Is there a procedure for easily accomplishing this, which will allow me to keep variable short and long labels (big surveys LOTS of time to replace all this work). Many thanks for sharing your time and knowledge.
What about using a database? (or ASCII files if nothing else works...)
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
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
Steve Burgess wrote:
I am a new R user attempting to convert files from Statistica to R. I can export from Statistica to SPSS .por format, but not to the SPSS .sav format. Is there a procedure for easily accomplishing this, which will allow me to keep variable short and long labels (big surveys LOTS of time to replace all this work). Many thanks for sharing your time and knowledge.
What about using a database? (or ASCII files if nothing else works...)
Action speaks louder than words:
x <- read.spss("tate96.por")
names(x)[1:10]
[1] "ID" "EMPLYEE" "SMSKEY" "SMSTZONE" "SMSSTATE" "SMSCNTY" [7] "SMSCD" "SMSMSA" "SMSREP" "SMSSTRTA"
attr(x,"variable.labels")[1:10]
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"
x <- read.spss("tate96.por")
attr(x,"variable.labels")[1:5]
ID EMPLYEE
"Pre-election Respondent ID" "Pre-election Interviewer ID"
SMSKEY SMSTZONE
"Sample Record $" "Pre-election Time Zone"
SMSSTATE
"Pre-election FIPS State Code"
levels(x[[4]])
[1] "Pacific" "Mountain" "Eastern" "Central" ...etc...
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907