tweibull: Truncated Weibull Functions

Description Usage Arguments Value Author(s) Examples

Description

pdf, cdf, inverse cdf, and random deviates of the truncated weibull distribution.

Usage

1
2
3
4
rtweibull(n, shape, scale, a=0, b=Inf)
dtweibull(x, shape, scale, a=0, b=Inf)
ptweibull(q, shape, scale, a=0, b=Inf)
qtweibull(p, shape, scale, a=0, b=Inf)

Arguments

x,q

vector of quantiles.

p

vector of probabilities.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

shape

vector of shape parameters.

scale

vector of scale parameters.

a

vector of lower truncation limits

b

vector of upper truncation limits

Value

dtweibull gives the density, ptweibull gives the distribution function, qtweibull gives the quantile function, and rtweibull generates random deviates.

Author(s)

Rob Carnell

Examples

1
2
3
4
  rtweibull(5, 1, scale=2, a=0.5, b=3.0)
  dtweibull(seq(0, 4, by=0.5), 1, scale=2, a=0.5, b=3.0)
  ptweibull(seq(0, 4, by=0.5), 1, scale=2, a=0.5, b=3.0)
  qtweibull(seq(0, 1, by=0.1), 1, scale=2, a=0.5, b=3.0)

TruncatedDistributions documentation built on May 2, 2019, 4:52 p.m.