Function to create verification information associated with a set of forecasts p
and associated observations o
.
tverify(p, o, q, forceq, ncirc, L)# S3 method for default
tverify(p = cbind(1, 1, 1)/3, o = cbind(0, 0, 1),
q = cbind(1, 1, 1)/3, forceq = FALSE,
ncirc = 11, L = diag(c(1, 1, 1))/sqrt(2))
# S3 method for tverify
plot(x, thresh = 0, lsharp = TRUE,
L = diag(c(1, 1, 1))/sqrt(2),...)
An object of class tverify
, which is a list containing the following components:
array of bins in barycentric coordinates.
number of forecasts in each bin.
mean onservation associated with each forecast bin.
score associated with each forecast bin.
uncertainty associated with each forecast bin.
reliability associated with each forecast bin.
resolution associated with each forecast bin.
overall score.
overall uncertainty.
overall reliability.
overall resolution.
number of bins along each side of triangle.
input forecast data.
input observation data.
index of bin assigned to each forecast.
scoring matrix used.
array of hexagon centres.
climatology.
forecasts set to centre of each bin (tverify
) or recalibrated (tgetcal
)
mean observations corresponding to forecasts pk
parameters in calibration (tgetcal
only).
details of calibration (tgetcal
only ).
calibration function (tgetcal
only, for use with tcalibrate
).
An n-by-3 matrix of ternary forecasts.
An n-by-3 matrix of ternary observations.
A 1-by-3 matrix containing the climatology.
A logical. If forceq
= TRUE then the input climatology q
is used. If forceq
= FALSE a climatology is calculated from o
.
Controls discretisation of barycentric coordinates. (The number of hexagons along each side of the triangle.)
An object of the tverify class (as produced by tverify
or tgetcal
.
A `threshold' number of forecasts in a `bin', below which the forecast will not be plotted. (Prevents diagram being cluttered by very rare forecasts).
Logical controlling whether a ternary sharpness diagram is to be included.
A quadratic scoring matrix. The matrix for the Brier score is the default. Full functionality for other scores not yet implemented.
Not used.
Tim Jupp
Jupp TE, Lowe R, Stephenson DB, Coelho CAS (2012) On the visualization, verification and recalibration of ternary probabilistic forecasts, Philosophical Transactions of the Royal Society, volume 370, pages 1100-1120.
https://rsta.royalsocietypublishing.org/content/370/1962/1100.full/
https://arxiv.org/abs/1103.1303/
data(foot) # get football betting data
tv <- tverify(p=foot$p,o=foot$o) # get verification info
plot(tv) # plot verification info
Run the code above in your browser using DataLab