Hi everyone,
I am trying to use the predict function using a bart model built with the package dbarts
However, I get an error related to unexpected argument in the formula
My code is really simple
mod_BART<- bart(x.train = dataset[, -2], y.train = dataset[, 1], keeptrees = TRUE)
invisible(mod_BART$fit$state)
predict(mod_BART , newdata = dataset[, -2], type="bart")
I do not understand what I am doing wrong .. I also looked at the documentation of the function ...
Can anyone help me?