store.model.predict {radiant.model} | R Documentation |
Store predicted values generated in model functions
Description
Store predicted values generated in model functions
Usage
## S3 method for class 'model.predict'
store(dataset, object, name = "prediction", ...)
Arguments
dataset |
Dataset to add predictions to |
object |
Return value from model function |
name |
Variable name(s) assigned to predicted values |
... |
Additional arguments |
Details
See https://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant
Examples
regress(diamonds, rvar = "price", evar = c("carat", "cut")) %>%
predict(pred_data = diamonds) %>%
store(diamonds, ., name = c("pred", "pred_low", "pred_high")) %>%
head()
[Package radiant.model version 1.6.6 Index]