Description Usage Arguments Examples
Scaling and centering of data columns for standardization.
1 | ScaleCenterTest(d, Mean, SD)
|
d |
|
Mean |
|
SD |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ##---- 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 (d, Mean, SD)
{
d1 <- d[, -1]
d2 <- (d1 - rep(1, dim(d1)[1]) %*% t(Mean)) * (rep(1, dim(d1)[1]) %*%
t(1/SD))
d3 <- as.data.frame(cbind(d[, 1], d2))
colnames(d3) <- colnames(d)
return(d3)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.