geoMeanOfOddsCalc {aggutils}R Documentation

Geometric Mean of Odds

Description

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.

Usage

geoMeanOfOddsCalc(x, q = 0.05, odds = FALSE)

Arguments

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

Value

(numeric) The geometric mean of the odds

Note

agg(a) + agg(not a) does not sum to 1 for this aggregation method.


[Package aggutils version 1.0.2 Index]