Etrunc_gamma.Rd
Truncated mean of the Gamma distribution with shape parameter \(\alpha\) and rate parameter \(\beta\).
Etrunc_gamma(d, shape, rate = 1/scale, scale = 1/rate, less.than.d = TRUE)
d | cut-off value. |
---|---|
shape | shape parameter \(\alpha\), 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 |
Function :
MGF_gamma
gives the moment generating function (MGF).
E_gamma
gives the expected value.
V_gamma
gives the variance.
kthmoment_gamma
gives the kth moment.
Etrunc_gamma
gives the truncated mean.
SL_gamma
gives the stop-loss.
Elim_gamma
gives the limited mean.
Mexcess_gamma
gives the mean excess loss.
TVaR_gamma
gives the Tail Value-at-Risk.
Invalid parameter values will return an error detailing which parameter is problematic.
The Gamma distribution with shape parameter \(\alpha\) and rate parameter \(\beta\) has density: $$f\left(x\right) = \frac{\beta^{\alpha}}{\Gamma(\alpha)} x^{\alpha - 1}% \textrm{e}^{-\beta x}$$ for \(x \in \mathcal{R}^+\), \(\beta, \alpha > 0\).
Other Gamma Distribution:
E_gamma()
,
Elim_gamma()
,
MGF_gamma()
,
Mexcess_gamma()
,
SL_gamma()
,
TVaR_gamma()
,
V_gamma()
,
VaR_gamma()
,
kthmoment_gamma()
# With scale parameter Etrunc_gamma(d = 2, shape = 3, scale = 4)#> [1] 0.02101947# With rate parameter Etrunc_gamma(d = 2, shape = 3, rate = 0.25)#> [1] 0.02101947# values greather than d Etrunc_gamma(d = 2, shape = 3, rate = 0.25, less.than.d = FALSE)#> [1] 11.97898