Statalist


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

st: Stata code to run R code from within Stata and return certain pieces of the results as Stata macros


From   "Salah Mahmud" <[email protected]>
To   [email protected]
Subject   st: Stata code to run R code from within Stata and return certain pieces of the results as Stata macros
Date   Fri, 30 May 2008 12:09:50 -0500

Dear all,

Just wondering if you know of tried and tested Stata code (do or ado)
that would run a piece of R code from within Stata and return certain
pieces of the results as a Stata macro.

For instance, I would like to call an R function that would perform
certain calculations on certain variables (that also has to be
exported to R) and then return certain pre-specified info (from the R
object) such as a P-value as a Stata macro. Perhaps a  combination of
rsource, outsheet, some R object parsing and intext  that hides all
the mechanistic details of running R from within Stata.

Thanks,

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index