Truncated mean of the Loglogistic distribution with shape parameter \(\tau\) and scale parameter \(\lambda\).

Etrunc_llogis(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

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

scale

\(\lambda\) rate parameter, must be positive.

less.than.d

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

Value

Function :

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

Details

The Loglogistic distribution with shape parameter \(\tau\) and scale parameter \(\lambda\) has density: $$\frac{\tau \lambda^\tau x^{\tau -1}}{(\lambda^{\tau }+x^{\tau })^{2}}$$ for \(x \in \mathcal{R}^+\), \(\lambda, \tau > 0\).

See also

Other Loglogistic Distribution: E_llogis(), Elim_llogis(), Mexcess_llogis(), SL_llogis(), TVaR_llogis(), V_llogis(), VaR_llogis(), dllogis(), kthmoment_llogis(), pllogis()

Examples

# With scale parameter Etrunc_llogis(d = 2, shape = 2, scale = 5)
#> [1] 0.178394
# With rate parameter Etrunc_llogis(d = 2, shape = 2, rate = 0.2)
#> [1] 0.178394
# values greather than d Etrunc_llogis(d = 2, shape = 2, rate = 0.2, less.than.d = FALSE)
#> [1] 7.675588