stpareto | R Documentation |
These functions perform probabilistic analysis as well as random sampling on the shifted truncated Pareto distribution.
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)
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 |
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)).
A numeric value or a vector.
Dutang Christophe
mbbefd-distr
, exposureCurve
#density
curve(dstpareto(x, 3))
#cdf
curve(pstpareto(x, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.