Last chance! 50% off unlimited learning
Sale ends in
These functions calculate the moments of order k
and incomplete moments of order k
of a GB2 random variable
moment.gb2(k, shape1, scale, shape2, shape3)
incompl.gb2(x, k, shape1, scale, shape2, shape3)
el.gb2(shape1, scale, shape2, shape3)
vl.gb2(shape1, shape2, shape3)
sl.gb2(shape2, shape3)
kl.gb2(shape2, shape3)
numeric; vector of quantiles.
numeric; order of the moment.
numeric; positive parameter.
numeric; positive parameter.
numeric; positive parameters of the Beta distribution.
moment.gb2
gives the moment of order k
,
incompl.gb2
gives the incomplete moment of order k
,
El.gb2
gives the expectation of vl.gb2
gives the variance of sl.gb2
gives the skewness of kl.gb2
gives the kurtosis of
Let shape1
scale
shape2
shape3
This expression, when considered a function of k
, can be viewed as the moment-generating function of k
.
Kleiber, C. and Kotz, S. (2003) Statistical Size Distributions in Economics and Actuarial Sciences, chapter 6. Wiley, Ney York.
gamma
for the Gamma function and related functions (digamma
, trigamma
and psigamma
).
# NOT RUN {
a <- 3.9
b <- 18873
p <- 0.97
q <- 1.03
k <- 2
x <- qgb2(0.6, a, b, p, q)
moment.gb2(k, a, b, p, q)
incompl.gb2(x, k, a, b, p, q)
vl.gb2(a, p, q)
kl.gb2(p, q)
# }
Run the code above in your browser using DataLab