vif.ev: Variance Inflation Factor of Eigenvectors

View source: R/vif.ev.R

vif.evR 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

lmFilter, getEVs

Examples

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


spfilteR documentation built on Aug. 23, 2022, 1:06 a.m.