binomial_test {MutationalPatterns} | R Documentation

## Binomial test for enrichment or depletion testing

### Description

This function performs lower-tail binomial test for depletion and upper-tail test for enrichment

### Usage

    binomial_test(p, n, x)

### Arguments

`p` | Probability of success
`n` | Number of trials
`x` | Observed number of successes

### Value

A data.frame with direction of effect (enrichment/depletion), P-value and significance asterisks

### Examples

    binomial_test (0.5, 1200, 543)
    binomial_test (0.2, 800, 150)

[Package MutationalPatterns version 1.6.1 Index]