| fit_mm | R Documentation |
Fits the generalized Michaelis-Menten model to each bottle in a rumen_gp dataset.
fit_mm(data, start = NULL)
data |
A rumen_gp object. |
start |
Optional list of starting values. May contain any of:
|
V(t)
=
A
\frac{t^{c}}
{
t^{c}+K^{c}
}
where:
V(t) is cumulative gas production at time t
A is asymptotic gas production
K is the half-time parameter
c is the shape parameter
The generalized Michaelis-Menten model describes cumulative gas production using a flexible sigmoidal function.
The parameter K represents the time required
to reach approximately half of the asymptotic gas
production, while c controls curve shape and
steepness.
Flexible sigmoidal behavior
Biologically meaningful half-time parameter
Usually converges reliably
Well suited for rumen gas production data
Shape parameter may be difficult to interpret biologically
More complex than simple exponential models
The generalized Michaelis-Menten model is
mathematically equivalent to the Groot model
implemented in fit_groot().
Parameter correspondence:
A = VF
K = b
c = k
Both formulations produce identical fitted values and model diagnostics when convergence is achieved.
Researchers may choose either formulation according to the terminology commonly used in their field.
A mm_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_mm(
gp
)
summary(fit_default)
# Fit using custom starting values
fit_custom_start <- fit_mm(
gp,
start = list(
A = 120,
K = 10,
c = 2
)
)
summary(fit_custom_start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.