calc_vif: Calculate the variance inflation factors (VIFs)

View source: R/calc_vif.r

calc_vifR Documentation

Calculate the variance inflation factors (VIFs)

Description

This function prints the variance inflation factors (VIFs) calculated using the vif function in the R package car to a text file. A VIF > 10 indicates significant multicollinearity. It means that the standard error for the beta or coefficient of the predictor in question is more than ten times higher than if the predictor is independent of the other predictors.

Usage

calc_vif(output_reg, file)

Arguments

output_reg

A list outputted from the fit_punc_model function

file

Output file directory

Value

This function outputs a text file containing the VIF for each predictor in the model.

Author(s)

Kevin Surya

References

Vittinghoff et al. (2011) Fox and Weisberg (2019)


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.