Re: [R] Can R functions be implented in Matlab

From: Ted Harding <Ted.Harding_at_nessie.mcc.ac.uk>
Date: Thu 13 Oct 2005 - 08:56:34 EST


On 12-Oct-05 Madhu Kishore wrote:
> Hi,
> I am Madhu Kishore a Graduate student at University of Texas at El
> Paso in Electrical Engineering. I am using R language for Normality
> tests and my doubt is can implements the R functions in Matlab. I
> expect to hear from you soon.
> Madhu kishore.

Some of the simpler R functions could be implemented in MatLab with equivalent effect; in particular, anything which depends mainly on straightforward array (especially matrix and vector) calculations should not be too difficult. You are also likely to find MatLab functions which implement many of the computations in various normality tests directly, so you should not need to rewrite these; just use the MatLab functions.

However, don't even think of emulating anything extensive from R in MatLab! Not only would you ever finish your studies, you would probably never finish you R->MatLab project. They are quite different programming languages, and even something as basic as getting MatLab to emulate the R command

  summary(lm(y ~ A*B))

would be a major task if undertaken from scratch.

Why not just use one or the other, whichever best suits your purpose of the moment?

Best wishes,
Ted.



E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 12-Oct-05                                       Time: 23:55:45
------------------------------ XFMail ------------------------------

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 13 09:11:33 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:49:30 EST