Skip to contents

Normalize the model coefficients needed for the plot

Usage

normModelCoeffs(mod, X, y, sort.features = FALSE, sort.ind = NULL)

Arguments

mod:

a model to plot

X:

the data matrix with variables in the rows and observations in the columns

y:

the class vector

sort.features:

wether the features need to be sorted by correlation with 'y' or not (default:FALSE)

sort.ind:

computing sorting can take time if computed for every model and can be computed outside the function and passed as a parameter

Value

the normalized coefficients