powered by
Store predicted values generated in the nb function
# S3 method for nb.predict store(dataset, object, name = "pred_nb", ...)
Dataset to add predictions two
Return value from model function
Variable name(s) assigned to predicted values. If empty, the levels of the response variable will be used
Additional arguments
See https://radiant-rstats.github.io/docs/model/nb.html for an example in Radiant
# NOT RUN { result <- nb(titanic, rvar = "survived", evar = c("pclass", "sex", "age")) pred <- predict(result, pred_data = titanic) titanic <- store(titanic, pred, name = c("Yes", "No")) # }
Run the code above in your browser using DataLab