bweibull {CaDENCE}R Documentation

Bernoulli-Weibull distribution

Description

Functions implementing the Bernoulli-Weibull distribution, in which zero values occur with probability 1-prob and non-zero values follow a Weibull distribution with scale and shape parameters. dbweibull gives a probability density function (pdf), pbweibull gives the cumulative distribution function (cdf), qbweibull gives the quantile function (inverse cdf), and rbweibull is used for generating random variates.

Usage

dbweibull(x, prob, scale, shape)
pbweibull(q, prob, scale, shape)
qbweibull(p, prob, scale, shape)
rbweibull(n, prob, scale, shape)

Arguments

x, q

vector of quantiles.

p

vector of cumulative probabilities.

n

number of random samples.

prob

probability of a non-zero value.

scale

scale parameter of the weibull distribution.

shape

shape parameter of the weibull distribution.

Value

dbweibull gives the pdf, pbweibull gives the cdf, qbweibull gives the inverse cdf (or quantile function), and rbweibull generates random variates.

See Also

dweibull, bgamma, bpareto2, blnorm

Examples

  plot(rbweibull(365, prob = 0.2, scale = 1, shape = 1), type = "h")

[Package CaDENCE version 1.2.5 Index]