tags:

views:

318

answers:

4

Is there a way to convert a dta file to a CSV? I don't have a version of Stata so I can't do something like save as CSV file.

+2  A: 

I have not tried, but one way is if you know Perl, you can use a module, such as dta2csv to convert the file for you.

ghostdog74
+1  A: 

You could try doing it through R. foreign package could read your dataset

library(foreign)
yourData <- read.dta("yourStataFile.dta")

And then you simply write it to CSV

write.csv(yourData, file = "yourStataFile.csv")
radek
A: 

StatTransfer is a program that moves data easily between STATA, excel (or csv), SAS, etc. It is very user friendly (requires no programming skills). See www.stattransfer.com

If you use the program just note that you will have to choose "ASCII/Text - Delimited" to work with .csv files rather than .xls

dandyjuan
+1  A: 

You can do it in StatTransfer, R or perl (as mentioned by others), but StatTransfer costs $$$ and R/Perl have a learning curve.
There is a free, menu-driven stats program from AM Statistical Software that can open and convert Stata .dta from all versions of Stata, see:

http://am.air.org/


Eric A. Booth [email protected] [email protected]

eric.a.booth
BTW, here is Stata's breakdown of how a .dta file is structured, which could be useful for extracting data elements: http://www.stata.com/help.cgi?dta
eric.a.booth