[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: st: RE: SAS Transport

From   "E. Paul Wileyto" <>
Subject   Re: AW: st: RE: SAS Transport
Date   Tue, 31 Mar 2009 12:13:01 -0400

I have imported Stata files to R, and I recall that no label information came through.


Martin Weiss wrote:
"I've tried many times..."

So have I... Grrr...

"I thought it could import SAS or Stata files, but I don't know if it
preserves labeling."

A glance at shows
that it can... See the functions "read.dta" and "write.dta"...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Lachenbruch,
Gesendet: Dienstag, 31. März 2009 17:47
Betreff: RE: st: RE: SAS Transport

What does R do?  I thought it could import SAS or Stata files, but I
don't know if it preserves labeling.  Also, the price of the program is
right, but there is a cost in learning it.  I've tried many times...


Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001

-----Original Message-----
[] On Behalf Of E. Paul
Sent: Monday, March 30, 2009 11:07 AM
Subject: Re: st: RE: SAS Transport

If you have SAS 9.2 available, it will import files from Stata v10, and preserve labels. I thought SAS had bought dbms copy to kill it, but it seems that SAS has incorporated parts of it, even though it does not support the stand-alone dbms copy very well.

SPSS reads and writes both Stata and SAS files, preserving labels.


Newson, Roger B wrote:
To convert SAS data sets to Stata datasets, I personally use
Stat/Transfer, whose website is at
and which has the advantage (over DBMS/Copy) that it can be called as
a DOS command. The -stcmd- package can call Stat/Transfer from within
Stata, and can be downloaded from SSC using the -ssc- command. However,
Ben (or somebody) would have to find the money to pay for Stat/Transfer.
I hope this helps.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: Web page:
Departmental Web page:
Opinions expressed are those of the author, not of the institution.

-----Original Message-----
[] On Behalf Of Benjamin
Sent: 30 March 2009 17:49
Subject: st: SAS Transport

I know that fdause cannot read SAS labels.

Is there any other way to
transform SAS data into Stata data while preserving labels?  I have an
older version of DBMS copy that I could use if necessary.
Hotmail(r) is up to 70% faster. Now good news travels really fast.
*   For searches and help try:

*   For searches and help try:

E. Paul Wileyto, Ph.D.
Assistant Professor of Biostatistics
Tobacco Use Research Center
School of Medicine, U. of Pennsylvania
3535 Market Street, Suite 4100
Philadelphia, PA  19104-3309

Fax: 215-746-7140

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index