Learn R Programming

aggutils (version 1.0.2)

geoMeanOfOddsCalc: 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)

Value

(numeric) The geometric mean of the odds

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