1
I'm new to R and using caret to learn ml. I was working with UCI bank marketing response data, but for the sake of reproducibility, I used iris data.
The problem is that when I run vif from the automobile package on classification models, I receive an error.
library(tidyverse)
library(caret)
library(car)
iris
# in order to make it binary categorization
iris train - iris percent > percent filter(Species percent in percent c("setosa","versicolor")) iris train - iris percent > percent filter(Species percent in percent c("setosa","versicolor")) iris train - iris percent
iris train
factor(iris train$Species) - $Species