| fit_groot | R Documentation |
Fits the Groot gas production model to each bottle in a rumen_gp dataset.
fit_groot(data, start = NULL)
data |
A rumen_gp object. |
start |
Optional list of starting values. May contain any of:
|
V(t)
=
\frac{VF}
{
1+\left(\frac{b}{t}\right)^k
}
where:
V(t) is cumulative gas production at time t
VF is asymptotic gas production
b is the half-time parameter
k is the shape parameter
The Groot model is a flexible sigmoidal model widely used in rumen gas production studies.
The parameter b represents the time required
to reach approximately half of the asymptotic gas
production, while k controls curve shape and
steepness.
Excellent flexibility
Biologically interpretable parameters
Often produces excellent fits
Widely used in rumen fermentation studies
Requires positive incubation times
Shape parameter may be less intuitive than simple exponential models
The Groot model is mathematically equivalent to the
generalized Michaelis-Menten model implemented in
fit_mm().
Parameter correspondence:
VF = A
b = K
k = c
Both formulations produce identical fitted values, residuals, diagnostics, AIC, BIC, RMSE, and R-squared when convergence is achieved.
Researchers may choose either formulation according to the terminology commonly used in their field.
A groot_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_groot(
gp
)
summary(fit_default)
# Fit using custom starting values
fit_custom_start <- fit_groot(
gp,
start = list(
VF = 120,
b = 10,
k = 2
)
)
summary(fit_custom_start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.