powered by
A method to calculate the overlap coefficient of two kernel density estimates (a measure of similarity between two samples).
overlap(x, y, method = "trapezoid")
A vector of values from a probability distribution (e.g., posterior probabilities from MCMC sampling).
Scalar between 0 and 1, indicating the mass within the credible interval that is to be estimated.
Method of AUC computation. Can be "trapezoid" (default), "step" or "spline".
# NOT RUN { library(psycho) x <- rnorm(100, 1, 0.5) y <- rnorm(100, 0, 1) overlap(x, y) # }
Run the code above in your browser using DataLab