Learn R Programming

BioMark (version 0.4.5)

scalefun: Different forms of scaling

Description

Function providing different forms of scaling in disciminant analysis - the resulting data matrix is mean-centered after the scaling. Modelled after functions in the st package.

Usage

scalefun(sc.p = c("none", "log", "sqrt", "pareto", "auto"))

Arguments

sc.p
Type of scaling. A pass-through option, performing only mean-centering, is provided by argument "none".

Value

mean-centers the result.

Examples

Run this code
X <- gen.data(5, nvar = 9, nsimul = 1)
FUN <- scalefun(sc.p = "pareto")
FUN(X$X[,,1])

Run the code above in your browser using DataLab