Principal Component and Partial Least Squares Regression
Regression using the principal components or latent variables as inputs. The best model is selected using components 1, 2, ..., r, where r, the number of components to use is determined by the AIC or BIC.
pcreg(Xy, scale = TRUE, method = c("PC", "LV"), ic = c("BIC", "AIC"))
Xy |
dataframe with variable names in columns |
scale |
Whether or not to scale. Default is TRUE. |
method |
either principal components, "PC", or partial least squares latent variables, "LV" |
ic |
"BIC" or "AIC" |
An S3 class list "pcreg" with components
lmfit |
lm model |
PLSFit |
column sd |
Z |
matrix of principal components or latent vector |
method |
'pcr' or 'pls' |
A. I. McLeod
pcreg(mcdonald, scale=TRUE, method="PC") pcreg(mcdonald, scale=TRUE, method="LV")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.