0

I have my model name as a variable:

model <- paste0("GBM_",risk_code,"_",risk_category, sep = "")

And want to predict based on this name:

pred1 <- predict(model, n.trees = model$n.trees, data)

I want to run a loop to predict for multiple different model names.

Thanks

neilfws
  • 32,751
  • 5
  • 50
  • 63

0 Answers0