Learn R Programming

FSinR (version 1.0.8)

giniIndex: Gini index measure

Description

This measure calculates the gini index Ceriani2012FSinR of discrete features

Usage

giniIndex(data, class, features)

Arguments

data
  • A data frame with the features and the class of the examples

class
  • The name of the dependent variable

features
  • The names of the selected feature

Value

  • The Gini index value for the selected features

References

Examples

Run this code
# NOT RUN {
giniIndex(iris,'Species',c('Sepal.Width', 'Sepal.Length'))
# }

Run the code above in your browser using DataLab