Description Usage Arguments Details Value Author(s) References Examples
Produces exact confidence intervals on quantiles corresponding to the stated probabilities, based on the binomial test.
1 | quantileCI(x, probs = 0.5, conf.level = 0.95)
|
x |
Numeric vector of observations. |
probs |
Numeric vector of cumulative probabilities between 0 and 1. |
conf.level |
Confidence level of the interval. |
If probs=0.5 (default), then a confidence interval on the population median is produced.
Confidence interval for each quantile based on probs.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
1 2 3 4 5 6 7 | # Sample 20 observations from an Exponential distribution with mean=10.
print( sort( x <- rexp( 20, 0.1 ) ) )
# Construct 90% confidence intervals on the 25th, 50th, and 75th percentiles.
quantileCI( x, c( 0.25, 0.5, 0.75 ), 0.9 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.