Statalist The Stata Listserver


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

st: RE: Re: Calling SAS and R code from Stata


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: Calling SAS and R code from Stata
Date   Tue, 2 May 2006 16:02:29 +0100

(Babak just asked the same question on Allstat.
Here is my reply repeated. I've ignored 
the attachment Babak sent as a matter of principle.) 

You cannot run SAS or R code from within Stata. 

Incidentally, I was not aware that you could 
run R or Stata code from within SAS, or 
SAS or Stata code from within R. That is, 
high-level languages can often run stuff
in lower-level languages, but at least 
in statistical software high-level languages
cannot in general run each other, to the 
best of my knowledge. (The compatibility 
of S-Plus and R is a different story.) 

Nick 
[email protected] 

Babak Oskooei
 
> Dear Statalist,
> 
> I have a question regarding STATA software.
> I would appreciate any comments on the following
> problem:
> 
> I perform research on several measures of explained
> variation in survival analysis which were programmed
> in different software such as SAS, R and C. I am
> planning to conduct simulation studies on all these
> measures in STATA software. Considering the deadline I
> have, it is practically impossible for me to program
> all measures again in STATA. I was wondering whether
> these programs could be run from within STATA. I know
> that STATA allows you to call in C codes using Plugin
> facility that exist in STATA, but I do not know
> whether this is possible with SAS or R code. Is it
> possible to use SAS or R as slave programs? 
> 
> I would be grateful for any comments on this or any
> references that I can refer to.

*
*   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