store.model {radiant.model} | R Documentation |
Store residuals from a model
Description
Store residuals from a model
Usage
## S3 method for class 'model'
store(dataset, object, name = "residuals", ...)
Arguments
dataset |
Dataset to append residuals to |
object |
Return value from a model function |
name |
Variable name(s) assigned to model residuals |
... |
Additional arguments |
Details
The store method for objects of class "model". Adds model residuals to the dataset while handling missing values and filters. See https://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant
Examples
regress(diamonds, rvar = "price", evar = c("carat", "cut"), data_filter = "price > 1000") %>%
store(diamonds, ., name = "resid") %>%
head()
[Package radiant.model version 1.6.6 Index]