1 |
x |
|
y |
|
tr |
|
alpha |
|
null.value |
|
pr |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##---- 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, tr = 0.2, alpha = 0.05, null.value = 0, pr = TRUE)
{
if (pr)
print("This version returns an effect size similar to what is used by yuenv2")
if (pr)
print("To get a measure of effect size based on the difference scores, use trimciv2")
library(MASS)
if (tr < 0)
stop("tr must be between 0 and .5")
if (tr > 0.5)
stop("tr must be between 0 and .5")
res = yuend(x = x, y = y, tr = tr, alpha = alpha)
epow = yuenv2(x, y, tr = tr)$Effect.Size
list(ci = res$ci, p.value = res$p.value, est1 = res$est1,
est2 = res$est2, dif = res$dif, se = res$se, teststat = res$teststat,
n = res$n, df = res$df, Effect.Size = epow)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.