Learn R Programming

HEMDAG (version 2.7.4)

scores.normalization: Scores normalization function

Description

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

Usage

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.

Value

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

Details

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

Examples

Run this code
# NOT RUN {
data(scores);
norm.types <- c("maxnorm","qnorm");
for(norm.type in norm.types){
    scores.normalization(norm.type=norm.type, S=S);
}
# }

Run the code above in your browser using DataLab