
Fit the full ensemble of growth-curve models to one data window
Source:R/ensemble.R
fit_ensemble.RdFits Logistic, Gompertz and Richards curves (fit_growth_model()) to a
single window of cumulative counts, computes MSE- and AIC-based weights,
and returns the ensemble (weighted-average) curve together with the
individual fits.
Usage
fit_ensemble(t, y, criterion = c("mse", "aic"), beta_fixed = 1.5)Arguments
- t, y
As in
fit_growth_model().- criterion
"mse"(default, matching the main text) or"aic"(matching the manuscript's comparative analysis).- beta_fixed
Shape parameter passed to the Richards fit (see
fit_growth_model()).