recalculateRules: Recalculate rule table.

Description Usage Arguments Value Author(s) Examples

View source: R/recalculateRules.R

Description

Recalculates the values in the rule table according to the decision table. Retrieves the rule support sets.

Usage

1
recalculateRules(dt, rules, discrete=FALSE, pAdjust=TRUE, pAdjustMethod="bonferroni")

Arguments

dt

A data frame of decision table. The last column is decision.

rules

A data frame of rule table from rosetta main output.

discrete

Logical. If TRUE the dataset is discrete. Default is FALSE.

pAdjust

Logical. If TRUE, p-value adjustment is applied. Default is TRUE.

pAdjustMethod

A character containing the name of the method: holm, hochberg, hommel, bonferroni, BH, BY, fdr or none. Default is bonferroni.

Value

output

A data frame containing recaluclated rules with: feature names, accuracy, support, statistics and support sets.

Author(s)

Mateusz Garbulowski

Examples

1
2
3
4
5
6
library(R.ROSETTA)
set.seed(1)

out <- rosetta(autcon)
rules <- out$main
recRules <- recalculateRules(autcon, rules)

mategarb/R.ROSETTA documentation built on Aug. 20, 2020, 5:21 a.m.