Weibull function

Share:

Description

Weibull function of the form (1 - exp(-(x/α)^β)

Usage

1

Arguments

x

Vector of values of the explanatory variable.

p

Vector of parameters p = c(α, β).

Value

Probability at each x.

Examples

1
2
3
4
xseq <- seq(0, 4, .01)
yseq <- weibull_fun(xseq, c(2, 4))
curve <- data.frame(x = xseq, y = yseq)
ggplot(curve, aes(x = x, y = y)) + geom_line()

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.