Learn R Programming

Qtools (version 1.5.8)

confint.midquantile: Mid-distribution Functions

Description

Compute mid-quantiles confidence intervals

Usage

# S3 method for midquantile
confint(object, parm = NULL, level = 0.95, ...)

Arguments

object

an object of class midquantile.

parm

not used (included for consistency with confint.default).

level

nominal coverage level of the confidence interval.

...

not used.

Author

Marco Geraci

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

Run this code

x <- rpois(100, lambda = 3)
mq <- midquantile(x)
confint(mq, level = 0.95)

# print standard errors
attributes(confint(mq, level = 0.95))$stderr

Run the code above in your browser using DataLab