store.nb.predict | R Documentation |
Store predicted values generated in the nb function
## S3 method for class 'nb.predict'
store(dataset, object, name = NULL, ...)
dataset |
Dataset to add predictions to |
object |
Return value from model function |
name |
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
result <- nb(titanic, rvar = "survived", evar = c("pclass", "sex", "age"))
pred <- predict(result, pred_data = titanic)
titanic <- store(titanic, pred, name = c("Yes", "No"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.