Convert a dta file to csv without Stata software

前端 未结 11 2100

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条回答
  •  Happy的楠姐
    2020-11-30 22:24

    Some mentioned SPSS, StatTransfer, they are not free. R and Python (also mentioned above) may be your choice. But personally, I would like to recommend Python, the syntax is much more intuitive than R. You can just use several command lines with Pandas in Python to read and export most of the commonly used data formats:

    import pandas as pd

    df = pd.read_stata('YourDataName.dta')

    df.to_csv('YourDataName.csv')

提交回复
热议问题