discretizeQuant: Descretize Quantitative Variables.

Description Usage Arguments Value Examples

Description

Takes in a data frame which contains only Quantitative varables in columns. Standadize the variables. Discretize quantitative variables and returns discretized quantitative variables. Discretization was performed by equal width bining algorithm.

Usage

1
discretizeQuant(myDataQuant, noice = TRUE)

Arguments

myDataQuant

A data frame which includes quantitative variables in columns.

noice

Noice indicator. If noice = TRUE data standerdization is done by deviding the difference between data point and median of the variable by the range of the variable. If noice = FALSE data standerdization is done by deviding the difference between data point and mean of the variable by the standard deviation of the variable.

Value

A data frame consists of discretized quantitative variables.

Examples

1
2
QuantVars <- data.frame(Qnvar1 = c(1.5,3.2,4.9,5), Qnvar2 = c(4.8,2,1.1,5.8))
Discretized <- discretizeQuant(QuantVars)

DisimForMixed documentation built on May 1, 2019, 9:25 p.m.