geoMeanCalc {aggutils} | R Documentation |
Calculate the geometric mean of a vector of forecasts. We handle 0s by replacing them with the qth quantile of the non-zero forecasts.
geoMeanCalc(x, q = 0.05)
x |
Vector of forecasts in 0 to 100 range (%) |
q |
The quantile to use for replacing 0s (between 0 and 1) |
(numeric) The geometric mean of the vector
agg(a) + agg(not a) does not sum to 1 for this aggregation method.