car::vif
is a function that needs to be adapted for each type of model. It works in the linked question because car::vif
has been implemented to cope with glm
models. car::vif
does not support your chosen model type: gbm
.
CLICK HERE to find out more related problems solutions.