Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Rexe: a module to run an R script and return a specified output


From   "Salah Mahmud" <salah.mahmud@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Rexe: a module to run an R script and return a specified output
Date   Sat, 31 May 2008 18:33:34 -0500

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index