'discretize' function performs a basic discretization using binning.
Usage
discretize(x, no.bin = 5)
Arguments
x
Data frame.
no.bin
Number of bin.
'FD' to use the Freedman-Diaconis rule for identifying number of bins.
The number of bin is 'max-min/2*IQR*n^-(1/3)'.
'ThreeStage' to discretize data into three stages.
1 if data is more than mu+sigma/2; 0=-1 if data is less than mu - sigma/2; otherwise 0.