cip {CNPS} | R Documentation |
Finding confidence interval for (100p)th percentile in the one-sample case.
cip(x, conf.level = 0.95, p = 0.5)
x |
numeric vector of data values |
conf.level |
confidence level for the returned confidence interval |
p |
an arbitrary value from 0 to 1 which indicates the percentile |
Usually we take the set with the shortest interval. But if the upper bound is greater than the maximum value(or the lower bound is less than the minimum value), we will choose the maximum value as the upper bound(the minimum value as the lower bound).
A list with following components
Lower.rank |
rank of the lower bound of the confidence interval in the order statistic |
Upper.rank |
rank of the upper bound of the confidence interval in the order statistic |
Lower |
the lower bound of the confidence interval |
Upper |
the upper bound of the confidence interval |
Jiasheng Zhang, Feng Yu, Yangyang Zhang, Siwei Deng. Tutored by YuKun Liu and Dongdong Xiang.
Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole.
x <- c(72.1, 72.8, 72.9, 73.3, 76.1, 76.5, 78.8, 78.9, 79.7, 80.3, 80.5, 81.0) cip(x) cip(x, conf.level =0.9, p=0.7)