standardize: Standardize Data

Description Usage Arguments Value

View source: R/utils.R

Description

Function that standardizes the data before running the fitting algorithm. This is used in the sail function

Usage

1
standardize(x, center = TRUE, normalize = FALSE)

Arguments

x

data to be standardized

center

Should x be centered. Default is TRUE

normalize

Should x be scaled to have unit variance. Default is FALSE

Value

list of length 3:

x

centered and possibly normalized x matrix

bx

numeric vector of column means of x matrix

sx

standard deviations (using a divisor of n observations) of columns of x matrix


sahirbhatnagar/funshim documentation built on May 27, 2018, 5:43 a.m.