Learn R Programming

FSinR (version 1.0.8)

chiSquared: Chi squared measure

Description

Calculates the Chi squared value Pearson1900FSinR, evaluating the selected features individually

Usage

chiSquared(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 feature or features to evalute individually

Value

  • The chi squared value for each selected feature

References

Examples

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

Run the code above in your browser using DataLab