geoMeanOfOddsCalc {aggutils} | R Documentation |
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)
x |
A vector of forecasts (probabilities! unless odds = TRUE) |
q |
The quantile to use for replacing 0s (between 0 and 1) |
odds |
Whether x is already in odds form (TRUE) or probabilities |
(numeric) The geometric mean of the odds
agg(a) + agg(not a) does not sum to 1 for this aggregation method.