TransformedBeta {actuar} | R Documentation |
Density function, distribution function, quantile function, random generation,
raw moments and limited moments for the Transformed Beta distribution
with parameters shape1
, shape2
, shape3
and
scale
.
dtrbeta(x, shape1, shape2, shape3, rate = 1, scale = 1/rate, log = FALSE) ptrbeta(q, shape1, shape2, shape3, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE) qtrbeta(p, shape1, shape2, shape3, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE) rtrbeta(n, shape1, shape2, shape3, rate = 1, scale = 1/rate) mtrbeta(order, shape1, shape2, shape3, rate = 1, scale = 1/rate) levtrbeta(limit, shape1, shape2, shape3, rate = 1, scale = 1/rate, order = 1)
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. |
shape1, shape2, shape3, scale |
parameters. Must be strictly positive. |
rate |
an alternative way to specify the scale. |
log, log.p |
logical; if TRUE , probabilities/densities
p are returned as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are
P[X <= x], otherwise, P[X > x]. |
order |
order of the moment. |
limit |
limit of the loss variable. |
The Transformed Beta distribution with parameters shape1
= a, shape2
= b, shape3
= c and scale
= s, has
density:
f(x) = Gamma(a + c)/(Gamma(a) * Gamma(c)) (b (x/s)^(bc))/ (x [1 + (x/s)^b]^(a + c))
for x > 0, a > 0, b > 0,
c > 0 and s > 0.
(Here Gamma(a) is the function implemented
by R's gamma()
and defined in its help.)
The Transformed Beta is the distribution of the random variable
s (X/(1 - X))^(1/b),
where X has a Beta distribution with parameters c and a.
The Transformed Beta distribution defines a family of distributions with the following special cases:
shape3 == 1
;
shape1
== shape3 == 1
;
shape3 == 1
and shape2 == shape1
;
shape2 == 1
;
shape2 ==
shape3 == 1
;
shape1 == 1
;
shape2 == shape1 == 1
;
shape1 == 1
and shape3 == shape2
.
The kth raw moment of the random variable X is E[X^k] and the kth limited moment at some limit d is E[min(X, d)^k].
dtrbeta
gives the density,
ptrbeta
gives the distribution function,
qtrbeta
gives the quantile function,
rtrbeta
generates random deviates,
mtrbeta
gives the kth raw moment, and
levtrbeta
gives the kth moment of the limited loss
variable.
Invalid arguments will result in return value NaN
, with a warning.
Distribution also known as the Generalized Beta of the Second Kind and Pearson Type VI.
Vincent Goulet vincent.goulet@act.ulaval.ca and Mathieu Pigeon
Klugman, S. A., Panjer, H. H. and Willmot, G. E. (2004), Loss Models, From Data to Decisions, Second Edition, Wiley.
exp(dtrbeta(2, 2, 3, 4, 5, log = TRUE)) p <- (1:10)/10 ptrbeta(qtrbeta(p, 2, 3, 4, 5), 2, 3, 4, 5) qpearson6(0.3, 2, 3, 4, 5, lower.tail = FALSE) mtrbeta(2, 1, 2, 3, 4) - mtrbeta(1, 1, 2, 3, 4) ^ 2 levtrbeta(10, 1, 2, 3, 4, order = 2)