overton_like {flowStats} | R Documentation

## Overton-like subtraction of densities.

### Description

This function computes an Overton-like subtraction of two densities. It calculates the proportion of the reference density that is above a reference

### Usage

    overton_like(ref, test, twosided = FALSE)

### Arguments

`ref` | The reference channel specified as a `vector`
`test` | The test (potentially positive) channel specified as a `vector`
`twosided` | `boolean` flag testing whether the area of the density of the test curve above the reference curve will be calculated on both sides of the mode of the test curve (TRUE) or only on the positive side of the mode (FALSE, default).

### Details

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.

### Value

`numeric` value representing the proportion of the area of the test density above the reference density.

### Author(s)

Greg Finak

### Examples

    A = rnorm(10000,mean=1,sd=0.5)
    B = rnorm(10000,mean=2,sd=0.5)
    overton_like(A,B)

[Package flowStats version 4.4.0 Index]