Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

calculate.stat

Calculate evaluation metrics based on a misclassification table


Description

calculate.stat is an internal biomod2 function to get scores, based on a misclassification table, of some referenced evaluation metrics.

Usage

calculate.stat( Misc,
                  stat='TSS')

Arguments

Misc

a misclassification table

stat

either 'TSS', 'KAPPA', 'ACCURACY', 'BIAS', 'POD', 'FAR', 'POFD', 'SR', 'CSI', 'ETS', 'HK', 'HSS', 'OR' or 'ORSS'

Details

Please refer to BIOMOD_Modeling to get more information about this metrics.

Value

The stat score for the Misc table.

Author(s)

Damien Georges

See Also

Examples

a <- sample(c(0,1),100, replace=TRUE)
  b <- sample(c(0,1),100, replace=TRUE)
  
  miscTab_aa <- table(a,a)
  miscTab_ab <- table(a,b)
  
  # perfect score
  calculate.stat( miscTab_aa, stat='TSS')
  # random score
  calculate.stat( miscTab_ab, stat='TSS')

biomod2

Ensemble Platform for Species Distribution Modeling

v3.4.6
GPL-2
Authors
Wilfried Thuiller [aut, cre], Damien Georges [aut, cre], Robin Engler [aut], Frank Breiner [aut]
Initial release
2020-02-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.