File: binomial_test.Rd

package info (click to toggle)
r-bioc-mutationalpatterns 3.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,360 kB
  • sloc: sh: 8; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial_test.R
\name{binomial_test}
\alias{binomial_test}
\title{Binomial test for enrichment or depletion testing}
\usage{
binomial_test(p, n, x, p_cutoffs = 0.05)
}
\arguments{
\item{p}{Probability of success}

\item{n}{Number of trials}

\item{x}{Observed number of successes}

\item{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
}
\description{
This function performs lower-tail binomial test for depletion and
upper-tail test for enrichment
}
\examples{
binomial_test(0.5, 1200, 543)
binomial_test(0.2, 800, 150)
}