View source: R/05_coefficients.R
coef.modeler | R Documentation |
modeler
Extract the estimated coefficients from an object of class modeler
.
## S3 method for class 'modeler'
coef(object, id = NULL, metadata = FALSE, df = FALSE, ...)
object |
An object of class |
id |
An optional unique identifier to filter by a specific group. Default is |
metadata |
Logical. If |
df |
Logical. If |
... |
Additional parameters for future functionality. |
A data.frame
containing the model's estimated coefficients,
standard errors, and optional metadata or degrees of freedom if specified.
Johan Aparicio [aut]
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)
)
print(mod_1)
coef(mod_1, id = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.