Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gvif.lm

Generalized Variance Inflaction Factor


Description

Computes the generalized variance inflaction factor (GVIF) for a normal linear model.

Usage

## S3 method for class 'lm'
gvif(model, verbose = TRUE, ...)

Arguments

model

an object of the class lm which is obtained from the fit of a normal linear model.

verbose

an (optional) logical switch indicating if should the report of results be printed. By default, verbose is set to be TRUE.

...

further arguments passed to or from other methods.

Value

A matrix with so many rows as effects in the model and three columns: (1) the values of GVIF; (2) the number of degrees of freedom; and (3) the values of GVIF^1/(2*df).

If the number of degrees of freedom is 1 then the GVIF reduces to the Variance Inflation Factor (VIF).

References

Fox J. and Monette G. (1992) Generalized collinearity diagnostics, JASA 87, 178–183.

See Also

Examples

## Example 1
fit1 <- lm(mpg ~ log(hp) + log(wt), data=mtcars)
gvif(fit1)

## Example 2
fit2 <- lm(Species ~ Biomass + pH, data=richness)
gvif(fit2)

## Example 3
whiteside <- MASS::whiteside
fit3 <- lm(Gas ~ Temp + Insul + Temp*Insul, data=whiteside)
gvif(fit3)

glmtoolbox

Set of Tools to Data Analysis using Generalized Linear Models

v0.1.0
GPL-2 | GPL-3
Authors
Luis Hernando Vanegas [aut, cre], Luz Marina Rondón [aut], Gilberto A. Paula [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.