Learn R Programming

asbio (version 0.2-1)

ci.median: Confidence interval for the median

Description

Function calculates the upper and lower confidence bounds for the true median, and calculates true coverage of the interval.

Usage

ci.median(x, conf = 0.95)

Arguments

x
A vector of quantitative data.
conf
The desired level of confidence 1 - P(type I error).

Value

  • Returns a list of class = "ci". Default printed results are the paramter estimate and confidence bounds. Other invisible objects include:
  • coverageThe true coverage of the interval
  • .

References

Ott, R. L., and M. T. Longnecker (2004) A first course in statistical methods. Thompson.

See Also

median

Examples

Run this code
x<-rnorm(20)
ci.median(x)

Run the code above in your browser using DataLab