1 |
x |
|
outfun |
|
se |
|
op |
|
gval |
|
cov.fun |
|
xlab |
|
ylab |
|
SEED |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ##---- 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, outfun = outbox, se = TRUE, op = 1, gval = sqrt(qchisq(0.975,
ncol(x))), cov.fun = rmba, xlab = "X", ylab = "Y", SEED = TRUE,
...)
{
m <- x
m = elimna(m)
temp <- mgvar(m, se = se, op = op, cov.fun = cov.fun, SEED = SEED)
temp[is.na(temp)] <- 0
temp2 <- outbox(temp, mbox = TRUE, gval = sqrt(qchisq(0.975,
ncol(m))))$out.id
vec <- c(1:nrow(m))
flag <- rep(T, nrow(m))
flag[temp2] <- F
vec <- vec[flag]
vals <- c(1:nrow(m))
keep <- vals[flag]
list(out.id = temp2, keep = keep)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.