qci:

Usage Arguments Examples

Usage

1
qci(x, q = 0.5, alpha = 0.05, op = 3)

Arguments

x
q
alpha
op

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, q = 0.5, alpha = 0.05, op = 3) 
{
    if (sum(duplicated(x) > 0)) 
        stop("Duplicate values detected; use hdpb")
    n <- length(x)
    xsort <- sort(x)
    iq <- floor(q * n + 0.5)
    qest <- xsort[iq]
    se <- qse(x, q, op = op)
    crit <- qnorm(1 - alpha/2)
    ci.low <- qest - crit * se
    ci.up <- qest + crit * se
    list(ci.low = ci.low, ci.up = ci.up, q.est = qest)
  }

musto101/wilcox_R documentation built on May 23, 2019, 10:52 a.m.