7.1 Basic Usage of R Distribution Functions

Usage

dunif(x, min=0, max=1, log = FALSE)

punif(q, min=0, max=1, lower.tail = TRUE, log.p = FALSE)

qunif(p, min=0, max=1, lower.tail = TRUE, log.p = FALSE)

runif(n, min=0, max=1)

Arguments

x, q vector of quantiles.

p: vector of probabilities.

n: number of observations. If length(n) > 1, the length is taken to be the number required.

min, max: lower and upper limits of the distribution. Must be finite.

log, log.p: logical; if TRUE, probabilities p are given as log(p).

lower.tail: logical; if TRUE (default), probabilities are P[X <= x], otherwise, P[X > x].

  • See ‘Hand-book on Statistical Distribution Functions for Experimentalists. Walck C. (2007)’

  • Notice the dependences of distribution functions on special functions on chapter 6.