I am trying to test that the assumption of my Multinomial Logistic Regression model holds or fails.
Multinomial Logistic Regression model is a model which could be created and compared, although it has this assumption:
Multinomial logistic regression does have assumptions, such as the assumption of independence among the dependent variable choices. This assumption states that the choice of or membership in one category is not related to the choice or membership of another category (i.e., the dependent variable). (source)
So after searching for a while I came across variance inflation factors which measure how much the behavior (variance) of an independent variable is influenced, or inflated, by its interaction/correlation with the other independent variables.
#Multinomial Logisitic Regression
mlrModel = train(
label~.,
data = overallDataset,
method = "multinom",
trControl = trainControl(method = "cv", number = 5),
trace = FALSE
)
mlrModel$results
head(predict(mlrModel, type = "prob"))
library(car)
vif(mlrModel$finalModel)
But I get this warning:
Warning message:
In vif.default(mlrModel$finalModel) :
No intercept: vifs may not be sensible.
And the results varied massively: 8.575035e+07 to -7.188586e+13
I have not removed the intercept from the model.
I found this question: vif(): "Warning message: No intercept: vifs may not be sensible." Trying to check multicollinearity with multinomial logistic regression but it had no answer.