abserrloss | R Documentation |
Loss functions for applying the spatial prediction comparison test (SPCT) for competing forecasts.
abserrloss(x, y, ...)
corrskill(x, y, ...)
sqerrloss(x, y, ...)
distmaploss(x, y, threshold = 0, const = Inf, ...)
x , y |
m by n numeric matrices against which to calculate the loss (or skill) functions. |
threshold |
numeric giving the threshold over which (and including) binary fields are created from |
const |
numeric giving the constant beyond which the differences in distance maps between |
... |
Not used by |
These are simple loss functions that can be used in conjunction with lossdiff
to carry out the spatial prediction comparison test (SPCT) as introduced in Hering and Genton (2011); see also Gilleland (2013) in particular for details about the distance map loss function.
The distance map loss function does not zero-out well as the other loss functions do. Therefore, zero.out
should be FALSE
in the call to lossdiff
. Further, as pointed out in Gilleland (2013), the distance map loss function can easily be hedged by having a lot of correct negatives. The image warp loss function is probably better for this purpose if, e.g., there are numerous zero-valued grid points in all fields.
numeric m by n matrices containing the value of the loss (or skill) function at each location i of the original set of locations (or grid of points).
Eric Gilleland
Gilleland, E. (2013) Testing competing precipitation forecasts accurately and efficiently: The spatial prediction comparison test. Mon. Wea. Rev., 141, (1), 340–355.
Hering, A. S. and Genton, M. G. (2011) Comparing spatial predictions. Technometrics 53, (4), 414–425.
lossdiff
, vgram.matrix
, vgram
# See help file for lossdiff for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.