Hello, I would like to use R in a laboratory. They use actually IML of the SAS-Society. With this IMLangage, you can enter a mathematical formula with sum from i to n, transpose matrix, sum of a colonne and all this stuff. After that, the software can translate it in a program. I am not currently use R in Matrix langage. But I manipulate data frame. I have the feeling that R can do like SAS do. What do you think about it? Thanks in advance, Pierre-Olivier Chasset
All of this is possible, and very easy, in R. See the Intro to R book. Doug Bates also has an article in the recent edition of R News showing how to perform matrix operations for least squares. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Pierre-Olivier Chasset Sent: Tuesday, February 01, 2005 1:22 PM To: r-help at stat.math.ethz.ch Subject: [R] Matrix langage Hello, I would like to use R in a laboratory. They use actually IML of the SAS-Society. With this IMLangage, you can enter a mathematical formula with sum from i to n, transpose matrix, sum of a colonne and all this stuff. After that, the software can translate it in a program. I am not currently use R in Matrix langage. But I manipulate data frame. I have the feeling that R can do like SAS do. What do you think about it? Thanks in advance, Pierre-Olivier Chasset ______________________________________________ R-help at 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
Matrix manipulations are a strength of R. If A and B are matrices, (A+B) adds them and (A %*% B) is the usual matrix multiplication; A*B is elementwise multiplication. qr(A) = the Q-R decomposition; svd(A) = singular value decomposition. eigen(A) = eigenvalue-eigenvector decomposition (except if you need some special Jordon form with repeated roots). Have you looked at ch. 5 in "An Introduction to R" under "www.r-project.org" -> Documentation: Manuals. hope this helps. spencer graves Pierre-Olivier Chasset wrote:> Hello, > > I would like to use R in a laboratory. They use actually IML of the > SAS-Society. With this IMLangage, you can enter a mathematical formula > with sum from i to n, transpose matrix, sum of a colonne and all this > stuff. After that, the software can translate it in a program. > I am not currently use R in Matrix langage. But I manipulate data > frame. I have the feeling that R can do like SAS do. > What do you think about it? > Thanks in advance, > > Pierre-Olivier Chasset > > ______________________________________________ > R-help at 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