tpwb {tpwb} | R Documentation |
The three-parameter Weibull distribution(tpwb)
Description
Density, distribution function, quantile function, and random generation function
for the three-parameter Weibull distribution with shape
, scale
and location
Usage
dtpwb(x, shape, scale, location = 1, log = FALSE)
ptpwb(q, shape, scale, location = 1, lower.tail = TRUE, log.p = FALSE)
qtpwb(p, shape, scale, location = 1, lower.tail = TRUE, log.p = FALSE)
rtpwb(n, shape, scale, location = 1)
Arguments
x , q |
vector of quantiles. |
shape |
shape parameter, where |
scale |
scale parameter, where |
location |
location parameter, where |
log , log.p |
logical; (default = |
lower.tail |
logical; if |
p |
vector of probabilities |
n |
number of observations. If |
Value
dtpwb
gives the density,
ptpwb
gives the distribution function,
qtpwb
gives the quantile function,
and rtpwb
generates random samples.
Note
If location parameter, \delta = 0
, it reduced to the two-parameter Weibull distribution.
References
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, volume 1, chapter 21. Wiley, New York.
Examples
x <- rtpwb(20,1.5,3,1)
dtpwb(x,1.5,3,1)
dtpwb(x,1.5,3,1,log=TRUE)
q <- rtpwb(20,1.5,3,1)
ptpwb(q,1.5,3,1 )
ptpwb(q,1.5,3,1, lower.tail = FALSE)
q <- rtpwb(20,1.5,3,1); q
p<- ptpwb(q,1.5,3,1 ); p
qtpwb(p,1.5,3,1)
rtpwb(5, 1.5, 3, 0) # the same as rweibull(5,1.5,3)
rtpwb(25,0.5, 2, 1)