svdpc.fit {pls} | R Documentation |
Principal Component Regression
Description
Fits a PCR model using the singular value decomposition.
Usage
svdpc.fit(X, Y, ncomp, center = TRUE, stripped = FALSE, ...)
Arguments
X |
a matrix of observations. |
Y |
a vector or matrix of responses. |
ncomp |
the number of components to be used in the modelling. |
center |
logical, determines if the |
stripped |
logical. If |
... |
other arguments. Currently ignored. |
Details
This function should not be called directly, but through the generic
functions pcr
or mvr
with the argument method="svdpc"
.
The singular value decomposition is used to calculate the principal
components.
Value
A list containing the following components is returned:
coefficients |
an array of regression coefficients for 1, ...,
|
scores |
a matrix of scores. |
loadings |
a matrix of loadings. |
Yloadings |
a matrix of Y-loadings. |
projection |
the projection matrix used to convert X to scores. |
Xmeans |
a vector of means of the X variables. |
Ymeans |
a vector of means of the Y variables. |
fitted.values |
an array of fitted values. The dimensions
of |
residuals |
an array of regression residuals. It has the same
dimensions as |
Xvar |
a vector with the amount of X-variance explained by each component. |
Xtotvar |
Total variance in
|
If stripped
is TRUE
, only the components coefficients
,
Xmeans
and Ymeans
are returned.
Author(s)
Ron Wehrens and Bjørn-Helge Mevik
References
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.