D.akp.effect:

Usage Arguments Examples

Usage

1
D.akp.effect(x, y = NULL, null.value = 0, tr = 0.2)

Arguments

x
y
null.value
tr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
##---- 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, y = NULL, null.value = 0, tr = 0.2) 
{
    library(MASS)
    if (!is.null(y)) 
        x = x - y
    x <- elimna(x)
    s1sq = winvar(x, tr = tr)
    cterm = 1
    if (tr > 0) 
        cterm = area(dnormvar, qnorm(tr), qnorm(1 - tr)) + 2 * 
            (qnorm(tr)^2) * tr
    cterm = sqrt(cterm)
    dval <- cterm * (tmean(x) - null.value)/sqrt(s1sq)
    dval
  }

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