R/rforest.R
store.rforest.predict.Rd
Store predicted values generated in the rforest function
# S3 method for rforest.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/rforest.html for an example in Radiant
result <- rforest( ketchup, rvar = "choice", evar = c("price.heinz28", "price.heinz32", "price.heinz41", "price.hunts32"), lev = "heinz28" ) pred <- predict(result, pred_data = ketchup)#>#>