1 |
m |
|
cop |
|
MM |
|
op |
|
outfun |
|
cov.fun |
|
MC |
|
STAND |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##---- 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 (m, cop = 3, MM = FALSE, op = 1, outfun = outogk, cov.fun = rmba,
MC = FALSE, STAND = TRUE, ...)
{
m <- elimna(m)
if (op == 1) {
if (!MC)
temp <- outpro(m, plotit = FALSE, cop = cop, MM = MM,
STAND = STAND)$keep
if (MC)
temp <- outproMC(m, plotit = FALSE, cop = cop, MM = MM,
STAND = STAND)$keep
}
if (op == 2)
temp <- outmgv(m, plotit = FALSE, cov.fun = cov.fun)$keep
if (op == 3)
temp <- outfun(m, plotit = FALSE, ...)$keep
val <- apply(m[temp, ], 2, mean)
val
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.