EMOTIONS: Ensemble Models for Lactation Curves
Lactation curves describe temporal changes in milk yield and are key to breeding and managing dairy animals more efficiently. The use of ensemble modeling, which consists of combining predictions from multiple models, has the potential to yields more accurate and robust estimates of lactation patterns than relying solely on single model estimates. The package EMOTIONS fits 47 models for lactation curves and creates ensemble models using model averaging based on Akaike information criterion (AIC), Bayesian information criterion (BIC), root mean square percentage error (RMSPE) and mean squared error (MAE), variance of the predictions, cosine similarity for each model's predictions, and Bayesian Model Average (BMA). The daily production values predicted through the ensemble models can be used to estimate resilience indicators in the package. The package allows the graphical visualization of the model ranks and the predicted lactation curves. Additionally, the packages allows the user to detect milk loss events and estimate residual-based resilience indicators.
| Version: |
1.1 |
| Depends: |
R (≥ 4.2) |
| Imports: |
dplyr, orthopolynom, quantreg, minpack.lm, tidyr, ggplot2, ggridges, parameters, rlang, tidyselect, splines, tibble |
| Suggests: |
knitr, rmarkdown |
| Published: |
2026-01-28 |
| DOI: |
10.32614/CRAN.package.EMOTIONS |
| Author: |
Pablo Fonseca [aut, cre],
Marcos Prates [aut],
Aroa Suarez-Vega [aut],
Ruth Arribas Gonzalo [aut],
Beatriz Gutierrez-Gil [aut],
Juan José Arranz [aut] |
| Maintainer: |
Pablo Fonseca <p.fonseca at csic.es> |
| License: |
GPL-3 |
| NeedsCompilation: |
no |
| Materials: |
README |
| CRAN checks: |
EMOTIONS results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=EMOTIONS
to link to this page.