scalefun {BioMark} | R Documentation |
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
A matrix. The function performs the required scaling, and mean-centers the result.
Author(s)
Ron Wehrens
Examples
X <- gen.data(5, nvar = 9, nsimul = 1)
FUN <- scalefun(sc.p = "pareto")
FUN(X$X[,,1])
[Package BioMark version 0.4.5 Index]