This help file contains a description of the format of class logregtree.
logregtree()
When storing trees, we number the location of the nodes using the following scheme (this is an example for a tree with at most 8 terminal nodes, but the generalization should be obvious):
Each node may or may not be present in the current tree. If it is present, it can contain an operator (“and” or “or”), in which case it has to child nodes, or it can contain a variable, in which case the node is a terminal node. It is also possible that the node does not exist (as the user only specifies the maximum tree size, not the tree size that is actually fitted).
Output files have one line for each node. Each line contains 5 numbers:
is represented as
An object of class logregtree is typically a substructure of an object of the class logregmodel. It will typically be the result of using the fitting function logreg. An object of class logictree has the following components:
whichtree | the sequence number of the current tree within the model. |
coef | the coefficients of this tree. |
trees | a matrix (data.frame) with five columns; see below for the format. |
Ingo Ruczinski and Charles Kooperberg
Ruczinski I, Kooperberg C, LeBlanc ML (2003). Logic Regression, Journal of Computational and Graphical Statistics, 12, 475-511.
Ruczinski I, Kooperberg C, LeBlanc ML (2002). Logic Regression - methods and software. Proceedings of the MSRI workshop on Nonlinear Estimation and Classification (Eds: D. Denison, M. Hansen, C. Holmes, B. Mallick, B. Yu), Springer: New York, 333-344.
Selected chapters from the dissertation of Ingo Ruczinski.
logreg, plot.logregtree, print.logregtree, logregmodel
logregtree() # displays this help file
help(logregtree) # equivalent