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

Description Usage Arguments Details Examples

View source: R/nb.R

Description

Store predicted values generated in the nb function

Usage

1
2
## S3 method for class 'nb.predict'
store(dataset, object, name = "pred_nb", ...)

Arguments

dataset

Dataset to add predictions two

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

Details

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

Examples

1
2
3
result <- nb(titanic, rvar = "survived", evar = c("pclass", "sex", "age"))
pred <- predict(result, pred_data = titanic)
titanic <- store(titanic, pred, name = c("Yes", "No"))

radiant-rstats/radiant.model documentation built on Nov. 13, 2018, 7 a.m.