This post is a follow up on recent discussions about a utility to run
R code and return results to Stata as Stata r() macros. See
http://www.stata.com/statalist/archive/2008-05/msg01271.html for more
details.
I quickly put together a proof-of-concept. Obviously, still at very
early stage of development and is untested.
The command right now can import a subset/all of a Stata dataset into
R. It has 2 options: Rcmd: one line of R code to be executed.
RETurn: name of R object returned by the above code. The pieces of
info (class members) stored in this objects will be returned as r()
macros.
The rexe.ado and a companion rexe_example.do is downloadable from
http://salah.mahmud.googlepages.com/stata. rexe_example.do contains
additional info on how to run the test code.
Please let me what you think. Any help developing and testing this
utility is welcome.
salah mahmud
Canada
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/