Ensemble Models for Lactation Curves
Performs the model fitting and the weight assignment based on differen...
Define the parameters for the lactation curve models to be fitted
Plot the actual daily milk daily production and the predicted values h...
Plot the actual daily milk daily production and the predicted values o...
Estimate normalized model`s weights based on a Expectation–Maximizatio...
Estimate normalized model`s weights based on the cosine similarity for...
Estimate the Akaike information criterion (AIC), Bayeasian information...
Impute missing daily milk yields using the ensemble created
A wrap function to the ModelsLac function that allows the fit of lacta...
Identify milk loss events and resilience indicators from daily milk yi...
Create a line plot that shows the range of the ranks obtained for each...
A function to estimate resilience estimators (logarithm of variance, l...
The function RidgeModels allows the visualization of the distribution ...
Estimate normalized model`s weights based on the variance of the predi...
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.