store.model: Store residuals from a model

Description Usage Arguments Details Examples

View source: R/regress.R

Description

Store residuals from a model

Usage

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

1
2
3
regress(diamonds, rvar = "price", evar = c("carat", "cut"), data_filter = "price > 1000") %>%
  store(diamonds, ., name = "resid") %>%
  head()

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