1 | D.akp.effect(x, y = NULL, null.value = 0, tr = 0.2)
|
x |
|
y |
|
null.value |
|
tr |
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
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.