ovl_distfit | R Documentation |
Calculate distribution overlap by distribution fitting. User need to specify which distribution family to use. This function estimates population distribution from sample distributions. It utilizes fitdist function in fitdistrplus R package.
ovl_distfit(x1, x2, family = c("norm", "lognorm", ...))
x1 |
A numeric vector. |
x2 |
A numeric vector. |
family |
A string to specify the distribution family. |
estimated overlap between two distributions (range: 0 to 1)
Seongyong Park (2020-08-18)
fitdist
x1 = rnorm(100, 0) x2 = rnorm(100, 1) ovl_distfit(x1, x2, family="norm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.