Re: [R] prcomp() on correlation matrix

2016-11-09 Thread David L Carlson
thropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter Sent: Wednesday, November 9, 2016 10:58 AM To: T.Riedle Cc: R-help@r-project.org Subject: Re: [R] prcomp() on correlation matrix We

Re: [R] prcomp() on correlation matrix

2016-11-09 Thread David L Carlson
Have you read the manual page for prcomp()? ?prcomp Look at the examples, particularly the use of the scale.= argument. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help

Re: [R] prcomp() on correlation matrix

2016-11-09 Thread Bert Gunter
Well, it seems you can't -- prcomp() seems to want the data matrix. But it would be trivial using svd() -- or possibly even eigen() -- if you understand the underlying linear algebra. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking th