| interactions3Way {integr} | R Documentation |
Calculates 3-Way Interactions
Description
Formula: I(X;Y;C) = I(X,Y;C) - IG(X;C) - IG(Y;C), where I(X;Y;C)
is 3-way Interaction gain of the attributes X and Y, given the
context (i.e. class) attribute C. Hence, I(X,Y;C) is a joint
2-way interaction gain (i.e. Information Gain) of the attributes X and
Y, and I(X;C) and I(Y;C) are 2-way Interaction gains
(i.e. Information Gains) of the attributes X and Y, respectively.
Usage
interactions3Way(df, classAtt, speedUp = FALSE)
Arguments
df |
A discrete |
classAtt |
A class column of the df ( |
speedUp |
A ( |
Value
A list with a: 1) data frame with 3-way interactions, 2)list of 2-way interactions of the input attributes
Examples
interactions3Way(golf, "Play")
interactions3Way(golf, "Play", speedUp = TRUE)
interactions3Way(golf, "Play", speedUp = FALSE)