store.model.predict: Store predicted values generated in model functions

Description Usage Arguments Details Examples

View source: R/regress.R

Description

Store predicted values generated in model functions

Usage

1
2
## 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

1
2
3
4
regress(diamonds, rvar = "price", evar = c("carat", "cut")) %>%
  predict(pred_data = diamonds) %>%
  store(diamonds, ., name = c("pred", "pred_low", "pred_high")) %>%
  head()

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