| fit_exp0 | R Documentation |
Fits the exponential gas production model without an explicit lag phase.
fit_exp0(data, start = NULL)
data |
A rumen_gp object. |
start |
Optional list of starting values. May contain any of:
|
V(t) = Vf \left( 1 - e^{-kt} \right)
where:
V(t) is cumulative gas production at time t
Vf is asymptotic gas production
k is the fractional rate constant
The EXP0 model assumes that gas production increases exponentially toward an asymptotic value without an explicit lag phase.
Simple and computationally efficient
Stable convergence
Easy biological interpretation
Does not model lag time
Limited flexibility for sigmoidal fermentation profiles
An exp0_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 defaults
fit_default <- fit_exp0(
gp
)
summary(fit_default)
# Fit using user-defined starting values
fit_custom_start <- fit_exp0(
gp,
start = list(
Vf = 120,
k = 0.05
)
)
summary(fit_custom_start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.