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.)
Related Posts with Exporting Stata results to R
RD Graph issueHi all, My Code: scatter aux1hm aux1dm, leg(off) || line lochd0m locd0m, leg(off) lpattern(solid d…
Counting concurrent use of three or more types of medication within an administrative claims databaseDear Statalist, I am working to count a range of medication-related problems using an administrativ…
Table with quartilesI want to create a table showing basic characteristics with the quartiles of a dependent variable, I…
Test difference between estimated coefficientsHello, I am running a regression on two subsamples (s2=0 and s2=1). I would like to test whether th…
Adding Log-rank test p-value to the Kaplan Meier graphHello everyone, I am trying to add Log-rank test p-value to my Kaplan Meier graph, but I cannot fin…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting Stata results to R
Post a Comment