residuals.modeler {flexFitR}R Documentation

Extract residuals from a modeler object

Description

Extract residuals from a modeler object

Usage

## S3 method for class 'modeler'
residuals(object, ...)

Arguments

object

An object of class 'modeler'

...

Additional parameters for future functionality.

Value

A numeric vector of residuals

Author(s)

Johan Aparicio [aut]

Examples

library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_lin_plat",
    parameters = c(t1 = 45, t2 = 80, k = 0.9),
    subset = c(15, 2, 45)
  )
residuals(mod_1)

[Package flexFitR version 1.2.0 Index]