Learn R Programming

Distributacalcul (version 0.2.2)

Etronq_weibull: Truncated mean of the Weibull distribution

Description

Truncated mean of the Weibull distribution with shape parameter parameter \(\tau\) and rate parameter \(\beta\).

Usage

Etronq_weibull(d, shape, rate = 1/scale, scale = 1/rate, less.than.d = TRUE)

Arguments

d

cut-off value.

shape

shape parameter \(\tau\), must be positive integer.

rate

\(\beta\) is the rate parameter, must be positive.

scale

alternative parameterization to rate parameter, scale = 1 / rate.

less.than.d

logical; if TRUE (default) truncated mean for values <= d, otherwise, for values > d.

Value

Returns numeric value. Function :

Invalid parameter values will return an error detailing which parameter is problematic.

Details

The Weibull distribution with shape parameter \(\tau\) and rate parameter \(\beta\) has density: $$f\left(x\right) = \beta \tau \left( \beta x \right) ^{\tau -1} % \mathrm{e}^{-\left( \beta x\right) ^{\tau }}$$ for \(x \in \mathcal{R}^+\), \(\beta > 0\), \(\tau > 0\)

See Also

Other Weibull Distribution: E_weibull(), Elim_weibull(), Mexcess_weibull(), SL_weibull(), TVaR_weibull(), V_weibull(), VaR_weibull(), kthmoment_weibull()

Examples

Run this code
# NOT RUN {
# With scale parameter
Etronq_weibull(d = 2, shape = 2, scale = 5)

# With rate parameter
Etronq_weibull(d = 2, shape = 2, rate = 0.2)

# Mean of values greater than d
Etronq_weibull(d = 2, shape = 2, rate = 0.2, less.than.d = FALSE)

# }

Run the code above in your browser using DataLab