I would like to use Stata and get results from analyses into R (as a data frame in R, for manipulation there). Stata can return various results for postestimations and manipulations (-return list-), but what would be the easiest way to get a matrix from Stata into R?
This is an old question, as shown by this thread on StackOverflow: https://stackoverflow.com/questions/...on-result-to-r, but I believe so far with no good answer.
Does anyone have any recent experience with such a procedure, and maybe a recommendation? I assume one option might be to use -putexcel-, and then read those excel data into R. But maybe there's a better solution out there.
(-Rcall- would not solve my problem. I need to run code from R or at the very least import results from Stata into R as a dataframe. I run all analyses and documentation from within R/RStudio, using the knitr package. Stata is currently used for initial data management only, but I'd like to add the option to let Stata do some analyses.)
This is an old question, as shown by this thread on StackOverflow: https://stackoverflow.com/questions/...on-result-to-r, but I believe so far with no good answer.
Does anyone have any recent experience with such a procedure, and maybe a recommendation? I assume one option might be to use -putexcel-, and then read those excel data into R. But maybe there's a better solution out there.
(-Rcall- would not solve my problem. I need to run code from R or at the very least import results from Stata into R as a dataframe. I run all analyses and documentation from within R/RStudio, using the knitr package. Stata is currently used for initial data management only, but I'd like to add the option to let Stata do some analyses.)
Comment