quantCI {QuantileNPCI} | R Documentation |
quantCI
Description
Calculate nonparametric confidence intervals for quantiles using fractional order statistics,
Usage
quantCI(x, q, alpha, method)
Arguments
x |
vector of data |
q |
the quantile |
alpha |
the significance level |
method |
the method used for calculate the confidence interval. Options are "exact" or "approximate". |
Value
returns a list of 5 values:
u1 |
the lower confidence limit of the quantile |
u2 |
the upper confidence limit of the quantile |
lower.ci |
the estimated x value at u1 |
qx |
the estimate x value of at the quantile q |
upper.ci |
the estimated x value at u2 |
Author(s)
Nicholas Hutson
Examples
x <- c(3.5,2.4,2.1,1.3,1.2,2.2,2.6,4.2)
quantCI(x, q=0.5, alpha=0.05, method = "exact")
[Package QuantileNPCI version 0.9.0 Index]