Skip to contents

Prints information about modeler function.

Usage

# S3 method for class 'modeler'
print(x, ...)

Arguments

x

An object fitted with the function modeler().

...

Options used by the tibble package to format the output. See `tibble::print()` for more details.

Value

an object inheriting from class modeler.

Author

Johan Aparicio [aut]

Examples

library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_linear_sat",
    parameters = c(t1 = 45, t2 = 80, k = 0.9),
    subset = c(1:5)
  )
plot(mod_1, id = c(1:4))

print(mod_1)
#> 
#> Call:
#> Canopy ~ fn_linear_sat(DAP, t1, t2, k) 
#> 
#> Residuals (`Standardized`):
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -1.7789  0.0000  0.0000  0.2329  0.5337  2.2361 
#> 
#> Optimization Results `head()`:
#>  uid   t1   t2     k      sse
#>    1 38.5 61.7  99.8 4.49e-01
#>    2 35.1 61.1 100.0 5.70e+00
#>    3 33.7 60.0 100.0 3.76e+00
#>    4 39.3 66.0  99.8 1.46e-18
#> 
#> Metrics:
#>  Groups      Timing Convergence Iterations
#>       5 3.0686 secs        100% 443.4 (id)
#>