| vif.ev | R Documentation | 
Calculate the variance inflation factor (VIF) of the eigenvectors in the spatial filter.
vif.ev(x = NULL, evecs, na.rm = TRUE)
| x | vector/ matrix of regressors (default = NULL) | 
| evecs | (selected) eigenvectors | 
| na.rm | remove missing values in covariates (TRUE/ FALSE) | 
Returns a vector containing the VIF for each eigenvector.
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.
Sebastian Juhl
lmFilter, getEVs
data(fakedata)
E <- getEVs(W = W, covars = NULL)$vectors
(VIF <- vif.ev(x = fakedataset$x1, evecs = E[, 1:10]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.