Learn R Programming

longevity (version 1.2.1)

rbeard: Beard distribution

Description

Distribution function, density, hazard, quantile function and random number generation for the Beard distribution

Usage

rbeard(n, rate, shape1, shape2)

pbeard(q, rate = 1, shape1 = 1, shape2 = 1, lower.tail = TRUE, log.p = FALSE)

dbeard(x, rate = 1, shape1 = 1, shape2 = 1, log = FALSE)

hbeard(x, rate = 1, shape1 = 1, shape2 = 1, log = FALSE)

qbeard(p, rate = 1, shape1 = 1, shape2 = 1, lower.tail = TRUE)

Value

a vector of random variates

a vector of (log)-probabilities of the same length as q

a vector of (log)-density.

a vector of (log)-hazard.

a vector of quantiles

Arguments

n

sample size

rate

rate parameter (\(\nu\))

shape1

shape parameter (\(\alpha\))

shape2

shape parameter (\(\beta\))

q

vector of quantiles.

lower.tail

logical; if TRUE (default), the lower tail probability \(\Pr(X \leq x)\) is returned.

log.p

logical; if FALSE (default), values are returned on the probability scale.

x

vector of quantiles.

log

logical; if FALSE (default), return the hazard

p

vector of probabilities.