vif.ev {spfilteR} | R Documentation |
Variance Inflation Factor of Eigenvectors
Description
Calculate the variance inflation factor (VIF) of the eigenvectors in the spatial filter.
Usage
vif.ev(x = NULL, evecs, na.rm = TRUE)
Arguments
x |
vector/ matrix of regressors (default = NULL) |
evecs |
(selected) eigenvectors |
na.rm |
remove missing values in covariates (TRUE/ FALSE) |
Value
Returns a vector containing the VIF for each eigenvector.
Note
This function assumes a linear model which ensures the uncorrelatedness of the eigenvectors. Note that regression weights or the link function used in generalized linear models can corrupt this property.
Author(s)
Sebastian Juhl
See Also
Examples
data(fakedata)
E <- getEVs(W = W, covars = NULL)$vectors
(VIF <- vif.ev(x = fakedataset$x1, evecs = E[, 1:10]))
[Package spfilteR version 1.1.5 Index]