disc.ew: Discretization using the equal width method

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/disc.ew.R

Description

Unsupervised discretization using intervals of equal width. The widths are computed using Scott's formula.

Usage

1
disc.ew(data, varcon,out=c("symb","num"))

Arguments

data

The name of the dataset containing the attributes to be discretized

varcon

A vector containing the indexes of the attributes to be discretized

out

To get the discretized dataset in a numerical format write "num". To get the discretized in an interval format write "symb"

Value

Returns a new data matrix with discretized values.

Author(s)

Edgar Acuna

References

Venables, W.N., and Ripley, B.D. (2002). Modern Applied Statistics with S. Fourth edition, Springer

See Also

disc.ef, disc.1r,chiMerge,disc.mentr

Examples

1
2
3
#----Discretization using the equal frequency method
data(bupa)
bupa.disc.ew=disc.ew(bupa,1:6,out="num")

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

dprep documentation built on May 29, 2017, 11:01 a.m.