summary.custom_fit: Summary of Custom Model Fits

View source: R/summary.custom_fit.R

summary.custom_fitR Documentation

Summary of Custom Model Fits

Description

Summarizes a fitted custom nonlinear model.

Usage

## S3 method for class 'custom_fit'
summary(object, ...)

Arguments

object

A custom_fit object.

...

Not used.

Details

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().

Value

Invisibly returns the input custom_fit object.

See Also

fit_custom, plot_fit, plot_residuals, compare_models

Examples


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
)


rumenGP documentation built on Oct. 2, 2026, 5:09 p.m.