1 |
x |
|
locfun |
|
est |
|
scat |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##---- 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, locfun = lloc, est = mean, scat = var, ...)
{
x = elimna(x)
x = as.matrix(x)
m1 = lloc(x, est = est)
v1 = apply(x, 2, scat)
p = ncol(x)
for (j in 1:p) x[, j] = (x[, j] - m1[j])/sqrt(v1[j])
x
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.