Description Usage Arguments Value Author(s) See Also
View source: R/votingLinearPredictor.R
This function calculates a fixed number of the first principal components of the given data and returns the residuals of a linear regression of each column on the principal components.
1 |
x |
Input data, a numeric matrix. All entries must be non-missing and finite. |
n |
Number of principal components to remove. This must be smaller than the smaller of the number of rows and
columns in |
A matrix of residuals of the same dimensions as x.
Peter Langfelder
svd for singular value decomposition,
lm for linear regression
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.