Steve Burgess | 1 Feb 2004 09:39
Picon

[R] Assistance with data import from Statistica

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
(Continue reading)

Christian Schulz | 1 Feb 2004 10:30
Picon

Re: [R] Assistance with data import from Statistica

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
(Continue reading)

Christian Schulz | 1 Feb 2004 11:10
Picon

Re: [R] Assistance with data import from Statistica

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
(Continue reading)

Uwe Ligges | 1 Feb 2004 11:43
Picon
Picon

Re: [R] Assistance with data import from Statistica

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

______________________________________________
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

Peter Dalgaard | 1 Feb 2004 13:02
Picon
Favicon

Re: [R] Assistance with data import from Statistica

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.
(Continue reading)

Peter Dalgaard | 1 Feb 2004 13:23
Picon
Favicon

Re: [R] Assistance with data import from Statistica

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
(Continue reading)

Gabor Grothendieck | 1 Feb 2004 14:16

Re: [R] Assistance with data import from Statistica


Unfortunately the dataload web site is down because
dataload is no longer longer being offered.  There is
a commercial offering called Stat Transfer (see
www.stattransfer.com) but I have never used it so don't
know more.

Date:   Sun, 1 Feb 2004 11:10:45 +0100 
From:   Christian Schulz <ozric <at> web.de>
To:   <Steve_Burgess <at> worldonline.co.za>, <R-help <at> stat.math.ethz.ch> 
Subject:   Re: [R] Assistance with data import from Statistica 

 
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
(Continue reading)

Picon
Picon
Favicon

[R] I can't make .C(...) web-page example.


Hi everyone!

I'm trying to lear how to call external C code in R but even the R help
web-page example is drive me crazy.

I copy-paste the example at:

http://stat.ethz.ch/R-manual/R-patched/doc/manual/R-exts.html#Interface%20functions%20.C%20and%20.Fortran

here is the example:

void convolve(double *a, int *na, double *b, int *nb, double *ab)
{
  int i, j, nab = *na + *nb - 1;

  for(i = 0; i < nab; i++)
    ab[i] = 0.0;
  for(i = 0; i < *na; i++)
    for(j = 0; j < *nb; j++)
      ab[i + j] += a[i] * b[j];
}

called from R by

conv <- function(a, b)
  .C("convolve",
     as.double(a),
     as.integer(length(a)),
     as.double(b),
(Continue reading)

Jim Clark | 1 Feb 2004 16:13
Favicon

[R] coxph in R

Where are the estimates of the baseline hazard in the output of coxph?

Thanks,
Jim

James S. Clark
H.L. Blomquist Professor
Department of Biology and Nicholas School of the Environment
Duke University
Durham, NC 27708
Biology: http://www.biology.duke.edu/research_by_area/eeob/clark.html
Center on Global Change: http://www.env.duke.edu/cgc/
Ecology Program: http://www.ecology.duke.edu/

______________________________________________
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

Jim Clark | 1 Feb 2004 16:14
Favicon

[R] coxph

Where are the estimates of the baseline hazard for coxph?

Thanks,
Jim

James S. Clark
H.L. Blomquist Professor
Department of Biology and Nicholas School of the Environment
Duke University
Durham, NC 27708
Biology: http://www.biology.duke.edu/research_by_area/eeob/clark.html
Center on Global Change: http://www.env.duke.edu/cgc/
Ecology Program: http://www.ecology.duke.edu/

______________________________________________
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


Gmane