Run Stata do file from Python

前端 未结 3 1305
挽巷
挽巷 2021-02-06 01:49

I have a Python script that cleans up and performs basic statistical calculations on a large panel dataset (2,000,000+ observations).

I find t

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 02:21

    If you're running this in a command-line setting, you should be able to call Stata from the command line from python (I don't know how to invoke a shell command from within Python, but it shouldn't be too hard, see here: Calling an external command in Python). To run Stata from the command line (aka batch mode), see here: http://www.stata.com/support/faqs/unix/batch-mode/

提交回复
热议问题