vif: Variance Inflation Factors

Description Usage Arguments Value Author(s) See Also Examples

Description

Variance inflation factors are computed for the standard errors of linear model coefficient estimates.

Usage

1
vif(obj, digits=5)

Arguments

obj

A lm object

digits

Number of digits

Value

A vector of variance inflation factors corresponding to the coefficient estimates given in the lm object.

Author(s)

J.H. Maindonald

See Also

lm

Examples

1
2
3
4
5
6
7
8
9
litters.lm <- lm(brainwt ~ bodywt + lsize, data = litters)
vif(litters.lm)

carprice1.lm <- lm(gpm100 ~ Type+Min.Price+Price+Max.Price+Range.Price,
    data=carprice)
vif(carprice1.lm)

carprice.lm <- lm(gpm100 ~ Type + Price, data = carprice)
vif(carprice1.lm)

jhmaindonald/DAAG documentation built on May 3, 2019, 3:13 p.m.