[R] Memory Allocation in R and S-Plus: And functions from R to S-Plus

kkelley kkelley at nd.edu
Tue Jan 8 22:33:08 CET 2002


Hello Everyone,

I've been told that the memory allocation in R and S-Plus is different, with R 
being better at doing simulations for whatever reason(s).  I was wondering if 
anyone could enlighten me on the differences in the memory usage/allocation 
(preferably in layman's terms!).

The reason I ask this is because of a simulation I am trying to run.  In it, I 
need to use the pt( ) function with a noncentrality argument.  The pt( ) 
function in S-Plus does not allow for a noncentral parameter, so I need to use 
R.  This is fine, but for some reason, R is taking a huge amount of time, but 
doing the same thing in S-Plus (without the noncentral parameter in pt( )) 
does not take much time at all.   So, my main question is why does R take so 
much longer?  One problem may be because there are three 
"for" loops in the program, but still S-Plus does it quickly (with the caveat 
of no noncentral parameter).

I was also wondering how to get a function from R into S-Plus, specifically 
the pt( ) function.

Any help on this would be very much appreciated. 
Thanks,
Ken

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list