| fit_lel | R Documentation |
Fits the Logistic-Exponential model with an explicit lag phase.
fit_lel(data, start = NULL)
data |
A rumen_gp object. |
start |
Optional list of starting values. May contain any of:
|
V(t)
=
\frac{
A
\left(
1-e^{-k(t-\lambda)}
\right)
}
{
1+\exp
\left[
\ln\left(\frac{1}{d}\right)
-
k(t-\lambda)
\right]
}
where:
V(t) is cumulative gas production at time t
A is asymptotic gas production
k is the fractional rate constant
d is a shape parameter
\lambda is lag time
The LEL model combines an exponential fermentation component, a logistic component, and an explicit lag phase.
This model is more flexible than traditional exponential models and can describe complex fermentation dynamics with delayed onset of gas production.
Explicit lag parameter
Flexible sigmoidal behavior
Can represent delayed fermentation
Often fits complex gas production profiles well
More parameters than EXP0 or EXPL
Greater risk of parameter correlation
May require careful starting values
Increased computational complexity
A lel_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_lel(
gp
)
summary(fit_default)
# Fit using custom starting values
fit_custom_start <- fit_lel(
gp,
start = list(
A = 120,
k = 0.05,
d = 0.50,
lambda = 1
)
)
summary(fit_custom_start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.