StdData: StdData

Description Usage Arguments Value Note Author(s)

View source: R/dmp__StdData.R

Description

Standardize a vector or colums of a matrix

Usage

1
StdData(X, method)

Arguments

X

"Numercial". The data to be standardized. "X" should be a numeric matrix or a vector. The standardization methods do _NOT_ apply to tho following situations: 1) there is only one row in the matrix. 2) some colums have constant values.

method

"Numerical". If "stdnorm", X will be standardized with mean zero and standard deviation 1. If "-1to1", X will be restricted to [-1, 1]. The "method" applies to each colums for a matrix or a vector.

Value

A matrix or a vector depends on the input X

Note

First: Thu Mar 4 13:50:30 CET 2010 Current: Sun Dec 21 04:24:52 EST 2014

Author(s)

Feng Li, Dept. of Statistics, Stockholm University, Sweden.


feng-li/flutils documentation built on Oct. 1, 2020, 9:09 p.m.