Learn R Programming

radiant.model (version 0.8.0)

store.nb.predict: Store predicted values generated in the nb function

Description

Store predicted values generated in the nb function

Usage

# S3 method for nb.predict
store(object, ..., data = attr(object, "pred_data"),
  name = "")

Arguments

object

Return value from model function

...

Additional arguments

data

Data or dataset name (e.g., data = mtcars or data = "mtcars")

name

Variable name(s) assigned to predicted values. If empty, the levels of the response variable will be used

Details

See https://radiant-rstats.github.io/docs/model/nb.html for an example in Radiant

Examples

Run this code
# NOT RUN {
result <- nb("titanic", "survived", c("pclass","sex","age"))
pred <- predict(result, pred_data = "titanic")
store(pred, data = titanic, name = "pred") %>% head
store(pred, data = titanic) %>% head

# }

Run the code above in your browser using DataLab