/Chen-et-al-2022a

Part I: A procedure to develop annual herd level lactation curve characteristics from individual cow level data for Dutch dairy farms

Primary LanguageJupyter Notebook

Chen-et-al-2022a

How to develop annual herd level lactation curve

Diagram on data editing

Examples of cow level lactation curves

As an illustration, This figure shows several lactation curves resulting from different lactation curve characteristics. If only magnitude increased, the overall height of the lactation curve would be increased. Increased time to peak yield resulted in a longer time to peak and lower peak yield. Higher persistency solely resulted in a higher peak yield and a slower decline rate after the peak.

Descriptive statistics of Dutch farms

The total number of cows increased from 2008 to 2016, then steadily decreased thereafter. In general, over 11 years the number of herds declined, accompanied by larger herd size and higher milk production.

Example of partition results

Descriptive statistics of herd lactation curve characteristics when using End Year as the partitioning method

Within year between herds variance

Herd persistency

P1

P2+

Herd magnitude

P1

P2+

Herd time to peak yield

P1

P2+

Codes

pyspark

1. Data editing before fitting

2_Data_editing_after_fitting

3_Herd_summary

4_Descriptive_analysis