Description Usage Arguments Value
View source: R/covariate_diagnostic_functions.R
Get Variance Inflation Factors (VIFs), indicating multicollinearity associated with each covariate in a dataset. A VIF value over ~5 indicates high collinearity and might warrant exclusion from a dataset
1 | get_covar_vif(in_data, covar_names)
|
in_data |
Input dataset, in data.table format |
covar_names |
[char] vector of covariate names, each of which should appear as columns in the dataset |
data.table with two fields: 'covar_name' (representing the covariate name) and 'vif' (giving the variance inflation factor for each covariate).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.