Learn R Programming

statisticalModeling (version 0.3.0)

collinearity: Calculate measures of collinearity

Description

Calculate measures of collinearity

Usage

collinearity(formula, data, format = c("SeIF", "degrees", "radians", "VIF"))

Arguments

formula
a formula giving, on the right-hand side, the explanatory variables to be considered. Iteractions, etc. may also be specified.
data
a data frame from which to draw the variables in the formula
format
choice of "SeIF" for inflation of standard errors, "degrees" or "radians" for collinearity described as an angle or "VIF" for the variance inflation factor (which is the square of SeIF).

Examples

Run this code
collinearity( ~ cyl * disp * hp, data = mtcars)
collinearity( ~ cyl * disp * hp, data = mtcars, format = "degrees")

Run the code above in your browser using DataLab