balanceD {CAGEfightR} | R Documentation

## Balance statistic: Andersson's D.

### Description

Calculates the D-statistics from Andersson et al the observed plus/minus downstream signals. The D statistics is rescaled from -1:1 to 0:1 so it can be used for slice-reduce identification of bidirectional sites.

### Usage

    balanceD(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
    balanceD(2, 3, 1, 0)

    # Balanced
    balanceD(3, 3, 0, 0)

[Package CAGEfightR version 1.12.0 Index]