scores.normalization: Scores normalization function

Description Usage Arguments Details Value Examples

View source: R/norm.fun.R

Description

Normalize a scores matrix w.r.t. max normalization (maxnorm) or quantile normalization (qnorm)

Usage

1
scores.normalization(norm.type = "maxnorm", S)

Arguments

norm.type

can be one of the following two values:

  • maxnorm (def.): each score is divided w.r.t. the max of each class;

  • qnorm: a quantile normalization is applied. Package preprocessCore is used;

S

A named flat scores matrix with examples on rows and classes on columns.

Details

To apply the quantile normalization the preprocessCore package must be properly installed.

Value

The matrix of the scores flat normalized w.r.t. maxnorm or qnorm.

Examples

1
2
3
4
5
data(scores);
norm.types <- c("maxnorm","qnorm");
for(norm.type in norm.types){
    scores.normalization(norm.type=norm.type, S=S);
}

HEMDAG documentation built on Feb. 12, 2021, 5:13 p.m.