Description Usage Arguments Examples

A method to calculate the overlap coefficient between two empirical distributions (that can be used as a measure of similarity between two samples).

1 2 3 4 5 6 7 8 9 10 |

`x` |
Vector of x values. |

`y` |
Vector of x values. |

`method_density` |
Density estimation method. See |

`method_auc` |
Area Under the Curve (AUC) estimation method. See |

`precision` |
Number of points of density data. See the |

`extend` |
Extend the range of the x axis by a factor of |

`extend_scale` |
Ratio of range by which to extend the x axis. A value of |

`...` |
Currently not used. |

1 2 3 4 5 6 7 | ```
library(bayestestR)
x <- distribution_normal(1000, 2, 0.5)
y <- distribution_normal(1000, 0, 1)
overlap(x, y)
plot(overlap(x, y))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.