Learn R Programming

MetabolAnalyze (version 1.3.1)

standardize: Function to scale covariates.

Description

A function to scale covariates so that they lie in [0,1] for reasons of stability and convergence of the EM algorithm.

Usage

standardize(Covars)

Arguments

Covars

An N x L matrix containing the L covariates of each of N observations.

Value

Covars

A standardized version of the input matrix of covariates.

Details

A function to scale covariates so that they lie in [0,1] for reasons of stability and convergence of the EM algorithm. Care must be taken with categorical covariates: see ppcca.metabol for further information.