1 |
x |
|
tr |
|
nboot |
|
SEED |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ##---- 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, tr = 0.2, nboot = 100, SEED = TRUE)
{
if (is.data.frame(x))
x = as.matrix(x)
if (SEED)
set.seed(2)
if (is.matrix(x))
x <- listm(x)
J <- length(x)
JALL = (J^2 - J)/2
est = matrix(NA, JALL, 3)
dimnames(est) = list(NULL, c("Group", "Group", "Effect Size"))
ic = 0
for (j in 1:J) {
for (k in 1:J) {
if (j < k) {
ic = ic + 1
est[ic, 1] = j
est[ic, 2] = k
est[ic, 3] = yuenv2(x[[j]], x[[k]], SEED = SEED,
tr = tr, nboot = nboot)$Effect.Size
}
}
}
list(Estimates = est)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.