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) 
#> 
#> Sum of Squares Error:
#>     Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
#> 0.000000 0.000049 0.448900 1.981675 3.758663 5.700760 
#> 
#> 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 2.2413 secs        100% 443.4 (id)
#>