calculate_indicator: Calculations of dairy herd health indicators from Dairy Herd...

Description Usage Arguments Value References

Description

Used inside IndicatorSheet.

Usage

1
calculate_indicator(indicator, data, testmonths = NA)

Arguments

indicator

A character string, one of c("LowSCC", "LactNI", "LactCure", "Chronic", "NoCure", "DryNI", "DryCure", "HeiferMast", "LowFPR", "HiFPRtotal", "HiFPR100", "Urea")

data

A dataframe like $einzeltiere returned by prepare_PCstart.

testmonths

The months for which the indicator should be calculated as vector of class Date. If NA, the recent date of data is used.

Value

A data.frame with nrow = length(testmonths) and four columns:

Month

the test month

a

the numerator

b

the denominator

c

the percentage of the indicator

for all indicators except Urea. For indicator = Urea, the data.frame has only three columns:

Month

the test month

mean

the mean

sd

the standard deviation of the milk urea content

References

Visit http://www.milchqplus.de/kennzahlen_1.html for descriptions of the udder health indicators.


VZoche-Golob/UdderHealthMonitor documentation built on May 9, 2019, 9:42 p.m.