Learn R Programming

ssdtools (version 0.3.7)

weibull: Weibull Distribution

Description

Density, distribution function, quantile function and random generation for the weibull distribution with parameters shape and scale.

Usage

dweibull(x, shape = 1, scale = 1, log = FALSE)

pweibull(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)

qweibull(p, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)

rweibull(n, shape = 1, scale = 1)

Arguments

x

A numeric vector of values.

shape

A string of the column in data for the shape aesthetic.

scale

scale parameter.

log

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

q

vector of quantiles.

lower.tail

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

log.p

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

p

vector of probabilities.

n

number of observations.

Value

A numeric vector.

See Also

stats::dweibull()

Examples

Run this code
# NOT RUN {
x <- seq(0.01, 5, by = 0.01)
plot(x, dweibull(x), type = "l")
# }

Run the code above in your browser using DataLab