baytrends (version 1.1.0)

vif: Variance Inflation Factors

Description

Computes the variance inflation factor (Helsel and Hirsch, 2002) for each variable in a linear regression fit.

Usage

vif(model, ...)

# S3 method for lm vif(model, ...)

Arguments

model

an object of class "lm." There is no default method for vif.

further arguments passed to or from other methods.

Value

A named numeric vector containing the variance inflation factors for each variable.

Details

Added from smwrStats.

References

Helsel, D.R. and Hirsch, R.M., 2002, Statistical methods in water resources: U.S. Geological Survey Techniques of Water-Resources Investigations, book 4, chap. A3, 522 p.