Density, distribution function, quantile function and random generation for the delayed Weibull distribution.
Besides the additional parameter delay, the other two Weibull-parameters are in principle retained as in R's stats-package:
shape
scale (as inverse of rate)
dweib_delayed(
x,
delay1,
shape1,
scale1 = 1,
delay2 = NULL,
shape2 = NULL,
scale2 = 1,
delay = delay1,
shape = shape1,
scale = scale1,
log = FALSE
)pweib_delayed(
q,
delay1,
shape1,
scale1 = 1,
delay2 = NULL,
shape2 = NULL,
scale2 = 1,
delay = delay1,
shape = shape1,
scale = scale1,
lower.tail = TRUE,
log.p = FALSE
)
qweib_delayed(
p,
delay1,
shape1,
scale1 = 1,
delay2 = NULL,
shape2 = NULL,
scale2 = 1,
delay = delay1,
shape = shape1,
scale = scale1,
lower.tail = TRUE,
log.p = FALSE
)
rweib_delayed(
n,
delay1,
shape1,
scale1 = 1,
delay2 = NULL,
shape2 = NULL,
scale2 = 1,
delay = delay1,
shape = shape1,
scale = scale1
)
mweib_delayed(
t = +Inf,
delay1,
shape1,
scale1 = 1,
delay2 = NULL,
shape2 = NULL,
scale2 = 1,
delay = delay1,
shape = shape1,
scale = scale1
)
Functions pertaining to the delayed Weibull distribution:
dweib_delayed gives the density
pweib_delayed gives the distribution function
qweib_delayed gives the quantile function
rweib_delayed generates a pseudo-random sample
mweib_delayed gives the restricted mean survival time
The length of the result is determined by n for rweib_delayed, and is the maximum of the lengths of the numerical arguments for the other functions, R's recycling rules apply.
A numeric vector of values for which to get the density.
numeric. The first delay, must be non-negative.
numeric. First shape parameter, must be positive.
numeric. First scale parameter (inverse of rate), must be positive.
numeric. The second delay, must be non-negative.
numeric. The second shape parameter, must be non-negative.
numeric. The second scale parameter (inverse of rate), must be positive.
numeric. Alias for first delay.
numeric. Alias for first shape.
numeric. Alias for first scale.
logical. Return value on log-scale?
A numeric vector of quantile values.
logical. Give cumulative probability of lower tail?
logical. P-value on log-sclae?
A numeric vector of probabilities.
integer. Number of random observations requested.
A numeric vector of times that restrict the mean survival. Default is +Inf, i.e., the unrestricted mean survival time.
Additional arguments are forwarded via ... to the underlying functions of the exponential distribution in the stats-package.
The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.