vif: Variance inflation factor

View source: R/variance_inflation.R

vifR Documentation

Variance inflation factor

Description

Variance inflation factor

Variance inflation factor (lm model)

Variance inflation factor (data.frame)

Variance inflation factor (default routine)

Usage

vif(mod, ...)

## S3 method for class 'lm'
vif(mod, ...)

## S3 method for class 'data.frame'
vif(mod, ...)

## Default S3 method:
vif(mod, ...)

Arguments

mod

A model object (or data.frame). For the moment only lm and a plain dataset is implemented

...

not used

Value

a matrix with for each variable de variance inflation factor, the degrees of freedom en the rescaled variance inflation factor based on the degrees of freedom.

Examples

{
vif(airquality)
}

inbo/inborutils documentation built on Nov. 23, 2023, 4:42 a.m.