I am trying to put a categorical variable as a response variable to glm function. So I initially did this:
logreg_ <- glm(Genre ~ price, data = train)
msummary(logreg_)
However, it just have given this as a result and I don't know how to fix this.
Error in y - mu : non-numeric argument to binary operator
The glimpse() of these columns are like this:
$ Genre <chr> "Strategy", "Strategy", "Early Access", "Early Access",~
$ price <dbl> 0.00, 0.79, 3.99, 11.39, 5.59, 0.79, 10.99, 5.79, 1.69,~
What should I do?