ci.median1: Confidence interval for a single median

View source: R/statpsych1.R

ci.median1R Documentation

Confidence interval for a single median

Description

Computes a confidence interval for a single population median.

Usage

ci.median1(alpha, y)

Arguments

alpha

alpha level for 1-alpha confidence

y

vector of scores

Value

Returns a 1-row matrix. The columns are:

  • Estimate - estimated median

  • SE - standard error

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Snedecor1980statpsych

Examples

y <- c(30, 20, 15, 10, 10, 60, 20, 25, 20, 30, 10, 5, 50, 40,
       20, 10, 0, 20, 50)
ci.median1(.05, y)

# Should return:
# Estimate       SE LL UL
#       20 4.270922 10 30



statpsych documentation built on June 22, 2024, 6:51 p.m.