table.stats {verification} | R Documentation |
Provides a variety of statistics for a data summarized in a 2 by 2 contingency table.
table.stats(obs, pred,silent = FALSE)
obs |
Either a vector of contingency table counts, a vector of binary observations, or a 2 by 2 matrix in the form of a contingency table. (See note below.) |
pred |
Either null or a vector of binary forecasts. |
silent |
Should warning statements be surpressed. |
tab.out |
Contingency table |
TS |
Threat score a.k.a. Critical success index (CSI) |
POD |
Hit Rate aka probability of detection |
M |
Miss rate |
F |
False Alarm RATE |
FAR |
False Alarm RATIO |
HSS |
Heidke Skill Score |
PSS |
Peirce Skill Score |
KSS |
Kuiper's Skill Score |
PC |
Percent correct - events along the diagonal. |
BIAS |
Bias |
ETS |
Equitable Threat Score |
theta |
Odds Ratio |
log.theta |
Log Odds Ratio |
n.h |
Degrees of freedom for log.theta |
orss |
Odds ratio skill score, aka Yules's Q |
eds |
Extreme Dependency Score |
seds |
Symmetric Extreme Dependency Score |
seds.se |
Standard Error for Symmetric Extreme Dependency Score |
Initially, table.stats was an internal function used by verify for binary events and multi.cont for categorical events. But occassionally, it is nice to use it directly.
Matt Pocernich <pocernic@rap.ucar.edu>
Jolliffe, I.T. and D.B. Stephenson (2003). Forecast verification: a practitioner's guide in atmospheric science. John Wiley and Sons. See chapter 3 concerning categorical events.
Stephenson, D.B. (2000). "Use of 'Odds Ratio for Diagnosing Forecast Skill." Weather and Forecasting 15 221-232.
Hogan, R.J., O'Connor E.J. and Illingworth, 2009. "Verification of cloud-fraction forecasts." Q.J.R. Meteorol. Soc. 135, 1494-1511.
verify
and multi.cont
DAT<- matrix(c(28, 23, 72, 2680 ), ncol = 2) ## Finley table.stats(DAT)