upareto | R Documentation |
Density function, distribution function, quantile function, random generation.
dupareto(x, log = FALSE)
pupareto(q, lower.tail=TRUE, log.p = FALSE)
qupareto(p, lower.tail=TRUE, log.p = FALSE)
rupareto(n)
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. If |
log , log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are
|
The extended Pareto distribution is defined by the following density and distribution function
f(x) = \frac{1}{x^2}, F(x) = 1-\frac{1}{x},
for all x>0
.
dupareto
gives the density,
pupareto
gives the distribution function,
qupareto
gives the quantile function, and
rupareto
generates random deviates.
The length of the result is determined by n
for
rupareto
, and is the maximum of the lengths of the
numerical parameters for the other functions.
The numerical parameters other than n
are recycled to the
length of the result. Only the first elements of the logical
parameters are used.
Christophe Dutang
Johnson, N.L., Kotz, S. and Balakrishnan, N. (2000), Continuous Univariate Distributions, Volume 1, Second Edition, John Wiley and Sons.
#####
# (1) density function
x <- seq(0, 5, length=24)
cbind(x, dupareto(x))
#####
# (2) distribution function
cbind(x, pupareto(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.