dlfc: The log2 fold change distribution

View source: R/lfc_basics.R

dlfcR Documentation

The log2 fold change distribution

Description

Density, distribution function, quantile function and random generation for the log2 fold change distribution with parameters ‘a’ and ‘b’ (corresponding to (pseudo-)counts incremented by 1).

Usage

dlfc(x, a, b, log = FALSE)

plfc(q, a, b, lower.tail = TRUE, log.p = FALSE)

qlfc(p, a, b, lower.tail = TRUE, log.p = FALSE)

rlfc(n, a, b)

Arguments

x, q

vector of quantiles

a

non-negative parameter

b

non-negative parameter

log, log.p

if TRUE, probabilities p are given as log(p)

lower.tail

if TRUE (default), probabilities are P[X <= x], otherwise, P[X > x].

p

vector of probabilities

n

number of observations

Value

The density

Functions

  • dlfc(): Density function

  • plfc(): Distribution function

  • qlfc(): Quantile function

  • rlfc(): random generation

Examples

x <- seq (-5,5,by=0.01)
plot(x,dlfc(x,1,1))

erhard-lab/lfc documentation built on April 25, 2023, 6:59 a.m.