Reference values for PLS-DA

Share:

Description

Generates matrix with reference y values (-1 and +1) for a vector with class values

Usage

1

Arguments

c

vector with class values (discrete)

classnames

vector with names for the classes

Value

the generated matrix with one column for each class

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.