The predictor variable(s), they have to be continuous.
k
The number of principal components to use.
xnew
If you have new data use it, otherwise leave it NULL.
Value
A list including:
betaThe beta coefficients.
parametersThe beta coefficients and their standard eror.
mseThe MSE of the linear regression, if xnew is NULL, becuase it needs the fitted values.
adj.rsqThe value of the adusted $R^2$ if xnew is NULL.
perThe percentage of variance of the cross product of the independent variables explained by the k components.
estThe fitted or the predicted values (if xnew is not NULL).
Details
The principal components of the cross product of the independent variables are obtained and classical regression is performed. This is use din the function
alfa.pcr.
References
Jolliffe I.T. (2002). Principal Component Analysis.