statsmodels.stats.outliers_influence.variance_inflation_factor(exog, exog_idx)
Parameters:
exog (ndarray) – design matrix with all explanatory variables, as for example used in regression
exog_idx (int) – index of the exogenous variable in the columns of exog
I am finding difficulty in understanding the parameters. For example I have a dataset with 20 variables, and one class variable (total 21 variables)
Var1 var2 Var3 Var4 class variable
so, exog will be all of these variables including class variable ? or exog will be all of these variables excluding class variable ?
What should be exog_idx ?