curve.shape: A function to determine the curve shape of a binomial...

Description Usage Arguments Value Examples

View source: R/curve.shape.r

Description

Adapted from Lester Yuan's code. Used in taxon.response.sort().

Usage

1
curve.shape(mnr, ubnd, lbnd)

Arguments

mnr

mean predicted probability

ubnd

upper boundary of mean predicted probability

lbnd

lower boundary of mean predicted probability

Value

returns one of "Unimodal", "Increasing", "Decreasing", "Concave up", or NA.

Examples

1
2
3
4
mean.resp <- 1:1000
up.bound <- mean.resp+1
low.bound <- mean.resp-1
curve.shape(mean.resp, up.bound,low.bound)

leppott/InvertExtirp documentation built on Nov. 8, 2019, 5:58 p.m.