chi.squared: Chi-squared filter

Description Usage Arguments Details Value Author(s) Examples

Description

The algorithm finds weights of discrete attributes basing on a chi-squared test.

Usage

1

Arguments

formula

a symbolic description of a model

data

a symbolic description of a model

Details

The result is equal to Cramer's V coefficient between source attributes and destination attribute.

Value

a data.frame containing the worth of attributes in the first column and their names as row names

Author(s)

Piotr Romanski

Examples

1
2
3
4
5
6
7
8
  library(mlbench)
  data(HouseVotes84)

  weights <- chi.squared(Class~., HouseVotes84)
  print(weights)
  subset <- cutoff.k(weights, 5)
  f <- as.simple.formula(subset, "Class")
  print(f)

Najah-lshanableh/R-data-mining documentation built on May 6, 2019, 10:11 a.m.