Hi all,
I have been using the example from this website without any issue at all:
https://www.r-bloggers.com/2020/05/multinomial-logistic-regression-with-r/
However there is now an error.
Here is a code snippet of the problem, once the BreastTissue data is loaded.
require(nnet)
# Training the multinomial model
multinom_model <- multinom(Class ~ ., data = tissue)
# Predicting the values for train dataset
train$ClassPredicted <- predict(multinom_model, newdata = train, "class")
Error Message below:
Error in predict(multinom_model, newdata = train, "class") :
unused arguments (newdata = train, "class")
It is no longer working and I have tried to delete the current version and go back a couple of versions with R studio to see if that would fix the problem, but still no luck. Very strange. Any guidance on how to solve an issue like this?
Thank you.