ScaleCenterTest: Sclae and Center data.

Description Usage Arguments Examples

Description

Scaling and centering of data columns for standardization.

Usage

1
ScaleCenterTest(d, Mean, SD)

Arguments

d
Mean
SD

Examples

 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)
  }

bvnlab/SCATTome documentation built on May 13, 2019, 9:05 a.m.