binomial_test: Binomial test for enrichment or depletion testing

Description Usage Arguments Value Examples

View source: R/binomial_test.R

Description

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

Usage

1
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

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

MutationalPatterns documentation built on May 31, 2017, 3:34 p.m.

Search within the MutationalPatterns package
Search all R packages, documentation and source code