binomial_test: Binomial test for enrichment or depletion testing

View source: R/binomial_test.R

binomial_testR 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, 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

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

CuppenResearch/MutationalPatterns documentation built on Nov. 23, 2022, 4:13 a.m.