vif: Calculate Variance Inflation Factor (VIF)

Description Usage Arguments Value Author(s) Examples

Description

This function calculate the Variance Inflation Factor for all the variables in a matrix.

Usage

1
vif(x, v=NULL)

Arguments

x

Dataframe. Each column in this dataframe that should be a variables to compute the VIF.

v

Optional character or numeric vector. It should specify a subset of variables by its name or its column number in the x matrix. If v is not provided vif are calculated for all the variables in x.

Value

The function return a numeric vector with a VIF value of each variable (column) in the x matrix.

Author(s)

Diego Nieto Lugilde

Examples

1
2
3
4
5
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as

dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.