Internal function to evaluate the importance of predictor combinations within a logic regression tree.
This function is called by prime.imp and is not intended to be used independently.
TTab(data, tree, Xs, mtype)A matrix mat.truth of binary predictor values corresponding to the predictions of the logic tree.
Rows correspond to all permutations of predictors included in the tree that yield the "truth" outcome.
A data frame containing input predictors.
An object of class logregtree representing a logic regression tree constructed for a sample.
A vector of predictor names corresponding to columns in data.
Model type: 1 = classification, 2 = linear regression, 3 = survival regression, 4 = other.
Bethany J. Wolf wolfb@musc.edu
Generates a matrix of all binary interactions contained in a single sample's logic regression tree. Only predictors included in the logic regression tree are included in the matrix. The resulting matrix can be used to evaluate the importance of specific predictor combinations.
Wolf BJ, Hill EG, Slate EH. Logic Forest: an ensemble classifier for discovering logical combinations of binary markers. Bioinformatics. 2010;26(17):2183-2189. doi:10.1093/bioinformatics/btq354
prime.imp