augment | R Documentation |
modeler
object with influence diagnosticsThis function computes various influence diagnostics, including
standardized residuals, studentized residuals, and Cook's distance, for an
object of class modeler
.
augment(x, id = NULL, metadata = TRUE, ...)
x |
An object of class |
id |
Optional unique identifier to filter by a specific group. Default is |
metadata |
Logical. If |
... |
Additional parameters for future functionality. |
A tibble containing the following columns:
uid |
Unique identifier for the group. |
fn_name |
Function name associated with the model. |
x |
Predictor variable values. |
y |
Observed response values. |
.fitted |
Fitted values from the model. |
.resid |
Raw residuals (observed - fitted). |
.hat |
Leverage values for each observation. |
.cooksd |
Cook's distance for each observation. |
.std.resid |
Standardized residuals. |
.stud.resid |
Studentized residuals. |
Johan Aparicio [aut]
library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
modeler(
x = DAP,
y = Canopy,
grp = Plot,
fn = "fn_logistic",
parameters = c(a = 0.199, t0 = 47.7, k = 100),
subset = 2
)
print(mod_1)
augment(mod_1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.