Re: [R] Confused by SVD and Eigenvector Decomposition in PCA

2003-02-07 Thread antonio rodriguez
Hi Feng, AFIK SVD analysis provides a one-step method for computing all the components of the eigen value problem, without the need to compute and store big covariance matrices. And also the resulting decomposition is computationally more stable and robust. Cheers, Antonio Rodriguez -

[R] a question regarding s-plus libraries and R

2003-02-07 Thread Andrej Kveder
Hi! I am a relatively new user of R and I use it to prepare my dissertation. I have come to some very usefull and specific libraries written for S-PLUS 4 and would like to use them in R. Is that possible? I just found out that one of these libraries has already been transfered to R, while 3

Re: [R] a question regarding s-plus libraries and R

2003-02-07 Thread Andrew C. Ward
Andrej, you may need to be more explicit about the precise capabilities that are lacking in R. For instance, there is a package on CRAN called norm that is based on work by Joseph Schafer. If you're aware of this package and it doesn't do what you want, perhaps there are others that do (survey,

Re: [R] postscript: can't center plot

2003-02-07 Thread Serge Boiko
Deborah, Perhaps, a good idea is to use eps output to include it into a LaTeX document, in this manner you can format and layout your graphics exactly the way you want. If you need more information, I'm ready for your disposal. -Serge __ [EMAIL

Re: [R] function 'silhouette' in package 'cluster'

2003-02-07 Thread Martin Maechler
Laurent == Laurent Gautier [EMAIL PROTECTED] on Thu, 6 Feb 2003 09:37:27 +0100 writes: Laurent Dear all, Laurent I am trying (without much success) to use the fuction 'silhouette'. Laurent Would anyone encountered that before (or would know where I am wrong ?) Lauren has sent

[R] My remark on libraries

2003-02-07 Thread Eric Lecoutre
Hi R community, These days, I am writing some functions to work with 2-ways frequency tables ; you know all this tuff about measures of association: Chisq and derived (phi, cramer's v), tau b, tau c, somer's d and so on. So I consider all those functions could be gathered in a single R file,

Re: [R] My remark on libraries

2003-02-07 Thread Ben Bolker
This comes up from time to time; at the moment I can't find the thread in the mailing list archives. The advantage, obviously, would be to make all this accumulated code available to the R community. The disadvantage would be that such a heap of code would be highly heterogeneous -- some

[R] RMySQL

2003-02-07 Thread Jörg Peter Baresel
Being relatively new to R, I want to use R in connection with a MySQL database. After installing (apparently sucessfully) the package RMySQL (R Version 1.6.2) the result is as follows: library(RMySQL) con - dbConnect(MySQL(), dbname= test) Error: couldn't find function dbConnect Thank You

RE: [R] Fw: Plotting in subareas using par(fig=) parameter

2003-02-07 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Friday, February 07, 2003 9:47 AM To: Sundar Dorai-Raj; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [R] Fw: Plotting in subareas using par(fig=) parameter Sundar and

[R] arrays when calling C++ from R

2003-02-07 Thread Ramon Diaz
Dear All, I am writing some code in C++ that I call from R (using .C). I would like to have support for 2D and 3D arrays, including reading, assignment and operations over whole columns, rows, and slices, etc (with linear algebra a plus). In the past I have used Blitz++

Re: [R] Importing Packages Using OS-X

2003-02-07 Thread Jan de Leeuw
In that case you have to download the ready-made packages from CRAN. If you want to build additional ones, it can be done using CodeWarrior or MPW, but you are basically one your own in the desolate reaches of MacOS 9.x. -- Jan On Thursday, February 6, 2003, at 08:31 PM, Matt Davis wrote: I

Re: [R] Confused by SVD and Eigenvector Decomposition in PCA

2003-02-07 Thread Feng Zhang
Thanks for those replies. But I tested several cases, and found the two percentage from SVD and EVD are not the same. So how to explain the difference and which one should be the right one for use in PCA? - Original Message - From: antonio rodriguez [EMAIL PROTECTED] To: Feng Zhang

[R] Data manipulation

2003-02-07 Thread Lew
I am interested in building a model with a subset of data from a column. The first 6 lines of my data look like this: QUAD YEAR SITE TREAT HERB TILL PLANT SEED Kweed 1 A4 2002s 1NN NN 55.00 2A10 2002s 1NN NN 60.00 3 B2 2002

Re: [R] Data manipulation

2003-02-07 Thread Roger Peng
You might want to try subsetting the data frame first, and then fit the model. Something like knap.sub - knap[c(41:60,81:100,101:120,121:140), ] knap.fit1 - lm(Kweed ~ TREAT, data = knap.sub) might work for you. -roger ___ UCLA Department of Statistics [EMAIL

Re: [R] Confused by SVD and Eigenvector Decomposition in PCA

2003-02-07 Thread Feng Zhang
I used Matlab to do this case study. x = randn(200,3); %%generating a 200x3 Gaussian matrix [a,b,c]=svd(x); %%SVD composition S=diag(b) S =[15.6765 14.8674 13.4016]' S(1)^2/sum(S.^2); 0.3802 ZeroedX = X - repmat(mean(X),200,1); %%ZeroedX is now zero centered data C = cov(ZeroedX);

[R] to modify a vector

2003-02-07 Thread Mitsuo Igarashi
Hi All. I am quite a newbie to R. This is a basic question. I like to modify elements of a vector. For Example: a1 - c(1,2,3,4,3,5) TThe following program sentence does not work but the intention is; if (a1==3) a1*3 . 3 in the vector should be changed to 9, and the resulted vector is