TSS: True skill statistic

Description Usage Arguments Details Value Author(s)

Description

True skill statistic (TSS) Function

Usage

1
2
TSS(cont1, cont2 = NULL, presAbs, thresh1, thresh2, largerPres1 = TRUE,
  largerPres2 = FALSE, link = `&`)

Arguments

cont1,

vector of simulation of any continuous variable which has been choosen as a primary proxy of fitness

cont2

vector of simulation of any continuous variable which has been choosen as a secondary proxy of fitness. If is.null(cont2), a simple TSS is calculated.

presAbs

vector of presence/absence data, can be logical

thresh1

vector containig the threshold values for cont1

thresh2

vector containig the threshold values for cont2

largerPres1

if TRUE, cont1 values larger then the threshold specify presence, if FALSE cont1 values smaller.

largerPres2

if TRUE, cont2 values larger then the threshold specify presence, if FALSE cont2 values smaller.

link

a vectorised function returning a logical vector of the same length as the exactly two logical input vectors. The default is the function &. It has to be specified using backquotes (i.e. "'&'" or "'|'").

Details

TSS is an index of the goodness-of- fit allowing to assess a how much a continuous variable simulated by any model fit presence/absence data. It thus allows to translate a map of any continuous variable into a map of presence/absence for a given set of spatial simulation at the species level. This is made possible by finding the threshold value of the continuous variable used as a procxy of fitness (e.g. growth, productivity..).

This version extends the function TSS to using two continuous variables (cont1 and cont2) and two thresholds (thres1 and thresh2) to predict presAbs

If largerPres1==TRUE and codelargerPres2==TRUE the system represents facilitation, while largerPres1==TRUE and codelargerPres2==FALSE represents competition.

If is.null(cont2) the function returns the normal default TSS.

Note that cont1 and verref must match spatially (same ranking and same size)

Value

An object of class TSS TODO

Author(s)

Rainer M. Krug Rainer@krugs.de


rkrug/TSS documentation built on July 6, 2019, 4:37 p.m.

Related to TSS in rkrug/TSS...