Probability mass function, cumulative distribution function, quantile function, and random generation for the Discretized Pareto Type-II distribution with shape parameter \(k>0\) and scale parameter \(s>0\).
[TO DO: rewrite in C, add NA handling, add working qdpareto2()]
rdpareto2(n, k = 1, s = 1)pdpareto2(q, k = 1, s = 1, lower.tail = TRUE)
qdpareto2(p, k = 1, s = 1, lower.tail = TRUE)
ddpareto2(x, k = 1, s = 1)
numeric vector;
ddpareto2
gives the probability mass function,
pdpareto2
gives the cumulative distribution function,
qdpareto2
calculates the quantile function,
and rdpareto2
generates random deviates.
integer; number of observations
vector of shape parameters, \(k>0\)
vector of scale parameters, \(s>0\)
logical; if TRUE
(default),
probabilities are \(P(X \le x)\), and \(P(X > x)\) otherwise
vector of probabilities
vector of quantiles
If \(X\sim\mathrm{DP2}(k,s)\),
then \(\lfloor Y\rfloor=X\),
where \(Y\) has ordinary Pareto Type-II
distribution, see ppareto2
.
Other distributions:
rpareto2()
Other DiscretizedPareto2:
dpareto2_estimate_mle()