quantCI: quantCI

Description Usage Arguments Value Author(s) Examples

View source: R/quantCI.R

Description

Calculate nonparametric confidence intervals for quantiles using fractional order statistics,

Usage

1
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

1
2
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")

QuantileNPCI documentation built on Sept. 5, 2019, 5:03 p.m.