processOpt: preprocessing of input data in 'mbpca'.

Description Usage Arguments Value Author(s)

View source: R/processOpt.R

Description

An internal function called by mbpca.

Usage

1
processOpt(x, center = TRUE, scale = FALSE, option = c("lambda1", "inertia", "uniform"))

Arguments

x

A list of matrices, rows are observations and columns are variables

center

A logical variable indicates whether columns should be centered

scale

A logical variable indicates whether columns should be scaled

option

A charater string could be one of c("lambda1", "inertia", "uniform") to indicate how the different matrices should be normalized. If "lambda1", the matrix is divided by its the first singular value, if "inertia", the matrix is divided by its total inertia (sum of square), if "uniform", none of them would be done.

Value

A list of normalized matrix.

Author(s)

Chen Meng


mogsa documentation built on Nov. 8, 2020, 5:41 p.m.