Find the area under the curve of the derivative. This function uses the trapezoidal method.

auc(object, multimodal = FALSE, prob = 0.95, adjust = 1, summary_only = FALSE)

Arguments

object

An object of class curvish.curve

multimodal

if the expected posterior might be multimodal, set this to TRUE so that the summary is a true, possibly discontinuous, highest posterior density interval.

prob

the proportion of mass within the HPDI

adjust

passed to density to adjust bandwidth.

summary_only

set this to FALSE if you want all samples returned.

Value