conf.interval: Confidence Interval for Population Median

Description Usage Arguments Details Value Examples

View source: R/func.r

Description

Evaluates a confidence interval for population median.

Usage

1
 conf.interval(x,alpha=0.95,verbose=TRUE)

Arguments

x

observed vector/sample.

alpha

confidence level.

verbose

print time elapsed (TRUE).

Details

Evaluates a confidence interval for population median based in the order statistics. It is considered the distribution of order statistics to evaluate the confidence level of the interval. It is not assumed any asymptotic distribution.

Value

A list with components:

cint1

A vector with the confidence interval limits, given by the biggest confidence level lower than or equal to alpha.

cint2

A vector with the confidence interval limits, given by the lowest confidence level bigger than or equal to alpha. If there is not interval with confidence level bigger than or equal to alpha, then cint2 is NULL.

alpha

Desired confidence level.

run.time

Time spent.

call

command evaluated.

Examples

1
2
  x <- rnorm(10,0,1)
  conf.interval(x)

MedOr documentation built on May 2, 2019, 2:42 a.m.