Last chance! 50% off unlimited learning
Sale ends in
This function computes the partial R-squared of all selected eigenvectors in a spatially filtered linear regression model.
partialR2(y, x = NULL, evecs)
Vector of partial R-squared values of the eigenvectors.
response variable
vector/ matrix of regressors
(selected) eigenvectors
Sebastian Juhl
lmFilter
, getEVs
data(fakedata)
y <- fakedataset$x1
x <- fakedataset$x2
# get eigenvectors
E <-getEVs(W = W, covars = NULL)$vectors
(out <- partialR2(y = y, x = x, evecs = E[, 1:5]))
Run the code above in your browser using DataLab