overton_like | R Documentation |
This function computes an Overton-like subtraction of two densities. It calculates the proportion of the reference density that is above a reference
overton_like(ref, test, twosided = FALSE)
ref |
The reference channel specified as a |
test |
The test (potentially positive) channel specified as a |
twosided |
|
The test can be one-sided or two-sided. If one sided, it tests the region of the test density that is above the mode of the reference density. If two-sided it will look at the regions on either side of the mode of the reference density. Densities are computed on a grid of 1024, and appropriately normalized.
numeric
value representing the proportion of the area of the test density above the reference density.
Greg Finak
A = rnorm(10000,mean=1,sd=0.5)
B = rnorm(10000,mean=2,sd=0.5)
overton_like(A,B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.