discretizeQuant {DisimForMixed}R Documentation

Descretize Quantitative Variables.

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

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

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

[Package DisimForMixed version 0.2 Index]