StdData: StdData

View source: R/StdData.R

StdDataR Documentation

StdData

Description

Standardize a vector or colums of a matrix

Usage

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.


thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.