area_of_confidence: Calculates area contained within 2D KDE confidence boundary

Description Usage Arguments Value Examples

Description

Produces a confidence boudnary wth a 2D kernel density estimate from a bivariate scatter plot, and then calculates the area within the confidence boundary.

Usage

1
area_of_confidence(x, y, confidence = 0.9)

Arguments

x

Values to be used on the x-axis

y

Values to be used on the y-axis

confidence

Confidence interval between 0 and 1 Default is 0.9, i.e 90% confidence inverval

Value

The area within the calculated confidence boundary

Examples

1
2
x <- rnorm(1000) ; y <- rnorm(1000)
area_of_confidence(x, y)

Swarchal/Smisc documentation built on May 9, 2019, 3:23 p.m.