This function computes the partial R-squared of all selected eigenvectors in a spatially filtered linear regression model.
partialR2(y, x = NULL, evecs)
response variable
vector/ matrix of regressors
(selected) eigenvectors
Vector of partial R-squared values of the eigenvectors.
The function assumes a linear regression model. Since the
eigenvectors are mutually uncorrelated, partialR2
evaluates
them sequentially. In generalized linear models, the presence of a link
function can corrupt the uncorrelatedness of the eigenvectors.