View source: R/summary.custom_fit.R
| summary.custom_fit | R Documentation |
Summarizes a fitted custom nonlinear model.
## S3 method for class 'custom_fit'
summary(object, ...)
object |
A |
... |
Not used. |
The summary typically reports:
Model name
Model formula
Parameter estimates
Residual Sum of Squares (RSS)
Root Mean Squared Error (RMSE)
R-squared (R²)
Akaike Information Criterion (AIC)
Bayesian Information Criterion (BIC)
This method provides a concise overview of
parameter estimates and model performance for
user-defined nonlinear equations fitted with
fit_custom().
Invisibly returns the input
custom_fit object.
fit_custom,
plot_fit,
plot_residuals,
compare_models
files <- example_data()
raw_data <- read_ankom(
files$ankom
)
metadata <- read_metadata(
files$metadata
)
gp <- process_ankom(
raw_data,
metadata,
headspace_ml = 210,
temperature_c = 39
)
custom_fit <- fit_custom(
data = gp,
formula =
Gas_mL ~
A *
(
Time_h /
(
Time_h + K
)
),
start = list(
A = 150,
K = 10
),
lower = c(
A = 0,
K = 0
),
model_name = "Hyperbolic"
)
summary(
custom_fit
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.