qtiles.CI | R Documentation |
Computes sample quantiles and confidence limts for specified probabilities.
qtiles.CI(x, probs = 0.5, CI = 0.9, bound = c("two.sided", "upper", "lower"), na.rm = TRUE)
x |
numeric vector to compute the sample quantiles. |
probs |
numeric vector of desired probabilities with values between 0 and 1. |
CI |
the minimum desired confidence interval for each level specifed in probs. |
bound |
a character string indicating the desired bounds, "two.sided"
means the two-sided interval, "upper" means the upper bound of the interval,
and "lower" means the lower bound of the interval. Only a single character
is needed. The lower confidence limit is |
na.rm |
logical; if TRUE, then missing values are removed before computation. |
A matrix of sample quantiles, the lower confidence limit, the upper confidence limit, and the probability represented by the confidence interval corresponding to the probs levels in the sorted x data.
Helsel, D.R. and Hirsch, R.M., 2002, Statistical methods in
water resources: U.S. Geological Survey Techniques of Water-Resources
Investigations, book 4, chap. A3, 522 p.
quantile
## Generate a random sample set.seed(222) XX.rn <- rexp(32) qtiles.CI(XX.rn, probs=c(.25, .5, .75))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.