Used in other functions in this library (taxon.response(), taxon.response.sort(), and tolerance()). Different versions for response and tolerance.

auc(xrange, mod, dense.N, taus, auc.version = "response")

Arguments

xrange

y

mod

x

dense.N

the number of areas to cut into in the calculation of area under the curve; default = 201

taus

determine the output the percentile of env variable; default = c(0,95,100) for response.

auc.version

calculation version, "response" or "tolerance"; default = "response".

Value

returns area under the specified curve.

Examples

xrange <- 1 lrm1 <- 2 # response version dense.N <- 201 taus=c(0,95,100) #' lrm1.95f <- auc.response(xrange, lrm1, dense.N, taus, "response") # tolerance version taus = c(50,95) lrm195f <- auc(xrange, lrm1, dense.N, taus, "tolerance")
#> Error in UseMethod("predict"): no applicable method for 'predict' applied to an object of class "c('double', 'numeric')"