pcaBySvd | R Documentation |
Operates a Principal Component Analysis on the Y
outcome/response matrix by a singular
value decomposition (the pre-processing involves the mean-centering of Y
).
Outputs are represented with functions pcaScorePlot
,
pcaLoading1dPlot
, pcaLoading2dPlot
and pcaScreePlot
.
pcaBySvd(Y, nPC = min(dim(Y)))
Y |
The nxm matrix with n observations and m response variables. |
nPC |
Number of Principal Components. |
A list with the following elements:
scores
Scores
loadings
Loadings
eigval
Eigenvalues
singvar
Singular values
var
Explained variances
cumvar
Cumulated explained variances
original.dataset
Original dataset
data('UCH') PCA.res = pcaBySvd(UCH$outcomes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.