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, p_cutoffs = 0.05)

Arguments

p

Probability of success

n

Number of trials

x

Observed number of successes

p_cutoffs

Significance cutoff for the p value. Default: 0.05

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 Nov. 14, 2020, 2:03 a.m.