Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Stata regression result to R?

Tags:

r

stata

My colleague and I chose Stata for regression analysis due to good handling of survey data. We also want to use R for graphics, but do not know how to export Stata regression model.

Within Stata, of course there is return list and ereturn list. But what's the best way to export these results outside of Stata? Direct to R would be ideal, but any intermediate format would be fine as well.

like image 362
Heisenberg Avatar asked Sep 16 '25 14:09

Heisenberg


1 Answers

If I were to do this, I would create a Stata dataset with all the regression results using postfile. Then import it into R using, for example, some technique from here. Manipulate within R at your convenience.

See also the user-written command rsource: ssc describe rsource.

Disclaimer: my knowledge of R is rather limited.

like image 89
Roberto Ferrer Avatar answered Sep 19 '25 06:09

Roberto Ferrer