calculate.stat: Calculate evaluation metrics based on a misclassification...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
  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

BIOMOD_Modeling, getStatOptimValue, Find.Optim.Stat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  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')
  

Example output

Loading required package: sp
Loading required package: raster
Loading required package: parallel
Loading required package: reshape
Loading required package: ggplot2
biomod2 3.3-7.1 loaded.

Type browseVignettes(package='biomod2') to access directly biomod2 vignettes.
[1] 1
[1] -0.1188475

biomod2 documentation built on May 2, 2019, 5:08 p.m.