vif.ev: Variance Inflation Factor of Eigenvectors

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/vif.ev.R

Description

Calculate the variance inflation factor (VIF) of the eigenvectors in the spatial filter.

Usage

1
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

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

spfilteR documentation built on Oct. 5, 2021, 9:10 a.m.