Learn R Programming

flowml (version 0.1.3)

format_y: format_y

Description

Formats response variable based on the ml-type variable passed by the config file. For regression analyses the response variable will be explicitly transformed to type numeric. For Classification experiments the response variable will be explicitly transformed to a factor. Time-to-event models are to be implemented in the near future.

Usage

format_y(y, ml.type)

Value

a transformed version of the response variable y.

Arguments

y

vector of response varibale.

ml.type

type of experiment (chracater).

Author

Kolja Becker