Re: [R] how to get coefficient and scores of Principal component analysis in R?

2015-03-19 Thread smb123
Actually, the loadings are quite different from the coefficients. The loadings are simply correlations of the original values to the scores for a PCA factor. The coefficients, on the other hand, allow one to compute the scores. There is a coefficient for each variable. The coefficient is

[R] how to get coefficient and scores of Principal component analysis in R?

2011-01-28 Thread Zunqiu Chen
Dear All, It might be a simple question. But I could not find the answer from function “prcomp” or “princomp”. Does anyone know what are the codes to get coefficient and scores of Principal component analysis in R? Your reply will be appreciated! Best Zunqiu [[alternative

Re: [R] how to get coefficient and scores of Principal component analysis in R?

2011-01-28 Thread Sarah Goslee
By coefficients do you mean loadings? Anyway, if you read the help for princomp -- ?princomp -- will get that, you'll see that it says, in part: ‘princomp’ returns a list with class ‘princomp’ containing the following components: sdev: the standard deviations of the principal

Re: [R] how to get coefficient and scores of Principal component analysis in R?

2011-01-28 Thread Liviu Andronic
Hello On Fri, Jan 28, 2011 at 8:16 PM, Zunqiu Chen che...@ohsu.edu wrote: It might be a simple question. But I could not find the answer from function “prcomp” or “princomp”. Does anyone know what are the codes to get coefficient and scores of Principal component analysis in R? Try these: