Convert a dta file to csv without Stata software

前端 未结 11 2108

Is there a way to convert a dta file to a csv?

I do not have a version of Stata installed on my computer, so I cannot do something like: <

11条回答
  •  臣服心动
    2020-11-30 22:15

    For those who have Stata (even though the asker does not) you can use this:

    outsheet produces a tab-delimited file so you need to specify the comma option like below

    outsheet [varlist] using file.csv , comma
    

    also, if you want to remove labels (which are included by default

    outsheet [varlist] using file.csv, comma nolabel
    

    hat tip to:

    http://www.ats.ucla.edu/stat/stata/faq/outsheet.htm

提交回复
热议问题