stpareto {mbbefd} | R Documentation |
The shifted truncated Pareto distribution
Description
These functions perform probabilistic analysis as well as random sampling on the shifted truncated Pareto distribution.
Usage
dstpareto(x, a, log=FALSE)
pstpareto(q, a, lower.tail = TRUE, log.p = FALSE)
qstpareto(p, a, lower.tail = TRUE, log.p = FALSE)
rstpareto(n, a)
mstpareto(order, a)
ecstpareto(x, a)
Arguments
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. If |
order |
order of the raw moment. |
a |
shape parameter. |
log , log.p |
logical; if |
lower.tail |
logical; if |
Details
The distribution is based on the Pareto 2 truncated at 1. The distribution function is given
by P(X<=x) = (1-(x+1)^(-a))/(1-2^(-a)).
Value
A numeric value or a vector.
Author(s)
Dutang Christophe
See Also
Examples
#density
curve(dstpareto(x, 3))
#cdf
curve(pstpareto(x, 3))
[Package mbbefd version 0.8.11 Index]