Thanks. I got what I needed. for example: > USA.pca<-prcomp(USArrests, scale = TRUE) > predict(USA.pca) PC1 PC2 PC3 PC4 Alabama -0.97566045 1.12200121 -0.43980366 0.154696581 Alaska -1.93053788 1.06242692 2.01950027 -0.434175454 Arizona -1.74544285 -0.73845954 0.05423025 -0.826264240 Arkansas 0.13999894 1.10854226 0.11342217 -0.180973554 California -2.49861285 -1.52742672 0.59254100 -0.338559240 ...
On 10/5/05, Berton Gunter <[EMAIL PROTECTED]> wrote: > > ?princomp ?prcomp give examples > > -- Bert Gunter > Genentech Non-Clinical Statistics > South San Francisco, CA > > "The business of the statistician is to catalyze the scientific learning > process." - George E. P. Box > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Weiwei Shi > > Sent: Wednesday, October 05, 2005 12:27 PM > > To: r-help > > Subject: [R] pca in dimension reduction > > > > Hi, there: > > I am wondering if anyone here can provide an example using pca doing > > dimension reduction for a dataset. > > The dataset can be n*q (n>=q or n<=q). > > > > As to dimension reduction, are there other implementations > > for like ICA, > > Isomap, Locally Linear Embedding... > > > > Thanks, > > > > weiwei > > > > -- > > Weiwei Shi, Ph.D > > > > "Did you always know?" > > "No, I did not. But I believed..." > > ---Matrix III > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > [email protected] mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > > > > -- Weiwei Shi, Ph.D "Did you always know?" "No, I did not. But I believed..." ---Matrix III [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
