Convert probabilities to odds, and calculate the geometric mean of the odds. We handle 0s by replacing them with the qth quantile of the non-zero forecasts, before converting.
geoMeanOfOddsCalc(x, q = 0.05, odds = FALSE)(numeric) The geometric mean of the odds
A vector of forecasts (probabilities! unless odds = TRUE)
The quantile to use for replacing 0s (between 0 and 1)
Whether x is already in odds form (TRUE) or probabilities