| fit_gompertz | R Documentation |
Fits the Zwietering-modified Gompertz model to each bottle in a rumen_gp dataset.
fit_gompertz(data, start = NULL)
data |
A rumen_gp object. |
start |
Optional list of starting values. May contain any of:
|
V(t)=
A
\exp
\left[
-
\exp
\left(
\frac{\mu e}{A}
(\lambda-t)
+
1
\right)
\right]
where:
V(t) is cumulative gas production at time t
A is asymptotic gas production
\mu is the maximum gas production rate
\lambda is lag time
e is Euler's number
The modified Gompertz model is one of the most commonly used models for gas production kinetics.
It explicitly estimates:
Final gas production potential (A)
Maximum gas production rate (\mu)
Lag time (\lambda)
making it biologically informative and easy to interpret.
Explicit lag parameter
Explicit maximum gas production rate
Excellent flexibility
Widely used in gas production studies
Strong biological interpretation
More computationally demanding than simple exponential models
Parameters may exhibit correlation in some datasets
A gompertz_fit object containing:
Parameter estimates
Model diagnostics
Predicted values
Residuals
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
)
# Fit using package default starting values
fit_default <- fit_gompertz(
gp
)
summary(fit_default)
# Fit using custom starting values
fit_custom_start <- fit_gompertz(
gp,
start = list(
A = 120,
mu = 5,
lambda = 1
)
)
summary(fit_custom_start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.