Learn R Programming

spfilteR (version 2.1.0)

vif.ev: 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)

Value

Returns a vector containing the VIF for each eigenvector.

Arguments

x

vector/ matrix of regressors (default = NULL)

evecs

(selected) eigenvectors

na.rm

remove missing values in covariates (TRUE/ FALSE)

Author

Sebastian Juhl

See Also

lmFilter, getEVs

Examples

Run this code
data(fakedata)
E <- getEVs(W = W, covars = NULL)$vectors
(VIF <- vif.ev(x = fakedataset$x1, evecs = E[, 1:10]))

Run the code above in your browser using DataLab