balanceBC {CAGEfightR} | R Documentation

## Balance statistic: Bhattacharyya coefficient (BC)

### Description

Calculates the Bhattacharyya coefficient from observed plus/minus upstream/downstream signals to a perfect bidirectional site, where plus-downstream = 50

### Usage

    balanceBC(PD, MD, PU, MU)

### Arguments

`PD` | Plus-Downstream signal
`MD` | Minus-Downstream signal
`PU` | Plus-Upstream signal
`MU` | Plus-Upstream signal

### Value

Balance score of the same class as inputs.

### Examples

    # Unbalanced
    balanceBC(2, 3, 1, 0)

    # Balanced
    balanceBC(3, 3, 0, 0)

[Package CAGEfightR version 1.10.0 Index]