1 |
dfvec |
|
iter |
|
alpha |
|
SEED |
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 (dfvec, iter = 10000, alpha = 0.05, SEED = TRUE)
{
if (SEED)
set.seed(1)
vals <- NA
tvals <- NA
J <- length(dfvec)
z = matrix(nrow = iter, ncol = J)
for (j in 1:J) z[, j] = rt(iter, dfvec[j])
vals = apply(z, 1, max)
vals <- sort(vals)
ival <- round((1 - alpha) * iter)
qval <- vals[ival]
qval
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.