store.model: Store residuals from a model

store.modelR 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()


radiant-rstats/radiant.model documentation built on Nov. 29, 2023, 5:59 a.m.