Mid-distribution Functions
midquantile.RdCompute mid-cumulative probabilities and mid-quantiles
Value
An object of class class midecdf or midquantile with mid-cumulative probabilities and mid-quantiles. For midecdf, this is a list that contains:
- x
unique values of the vector
xat which mid-cumulative probabilities are calculated.- y
estimated mid-cumulative probabilities.
- fn
interpolating function of the points
(x,y).- data
input values.
For midquantile, this is a list that contains:
- x
probabilities
probsat which mid-quantiles are calculated.- y
estimated mid-cumulative probabilities.
- fn
interpolating function of the points
(x,y).- data
input values.
References
Ma Y., Genton M., and Parzen E. Asymptotic properties of sample quantiles of discrete distributions. Annals of the Institute of Statistical Mathematics 2011;63(2):227-243
Parzen E. Quantile probability and statistical data modeling. Statistical Science 2004;19(4):652-62.
Examples
x <- rpois(100, lambda = 3)
midquantile(x)
#> Empirical mid-quantile function
#> Call:
#> midquantile(x = x)
#>