Displays a regression tree (R.W. Payne).
Option
PRINT = string tokens |
Controls printed output (summary , details , indented , bracketed , labelleddiagram , numbereddiagram , graph ); default * i.e. none |
---|
Parameter
TREE = tree |
Tree to be displayed |
---|
Description
BRDISPLAY
displays a regression tree, as constructed by the BREGRESSION
procedure. The key can be saved from BREGRESSION
(using the TREE
option of BREGRESSION
), and is specified for BRDISPLAY
using the TREE
parameter. The type of output is specified by the PRINT
option, with settings:
summary |
prints a summary of the properties of the tree; |
---|---|
details |
gives detailed information about the nodes of the tree; |
bracketed |
display as used to represent an identification key in “bracketed” form (printed node by node). |
indented |
display as used to represent an identification key in “indented” form (printed branch by branch); |
labelleddiagram |
diagrammatic display including the node labels; |
numbereddiagram |
diagrammatic display with the nodes labelled by their numbers; |
graph |
plots the tree using high-resolution graphics. |
Option: PRINT
.
Parameter: TREE
.
Method
BRDISPLAY
displays the tree using procedures BPRINT
and BGRAPH
.
See also
Procedures: BREGRESSION
, BRKEEP
, BRPREDICT
.
Commands for: Regression analysis, Multivariate and cluster analysis.
Example
CAPTION 'BRDISPLAY example',!t('Water usage data (Draper & Smith 1981,',\ 'Applied Regression Analysis, Wiley, New York).'); STYLE=meta,plain READ temp,product,opdays,employ,water 58.8 7.107 21 129 3.067 65.2 6.373 22 141 2.828 70.9 6.796 22 153 2.891 77.4 9.208 20 166 2.994 79.3 14.792 25 193 3.082 81.0 14.564 23 189 3.898 71.9 11.964 20 175 3.502 63.9 13.526 23 186 3.060 54.5 12.656 20 190 3.211 39.5 14.119 20 187 3.286 44.5 16.691 22 195 3.542 43.6 14.571 19 206 3.125 56.0 13.619 22 198 3.022 64.7 14.575 22 192 2.922 73.0 14.556 21 191 3.950 78.9 18.573 21 200 4.488 79.4 15.618 22 200 3.295 : "form the regression tree" BREGRESSION [PRINT=*; Y=water; TREE=tree] employ,opdays,product,temp "prune the tree" BPRUNE [PRINT=table] tree; NEWTREES=pruned "use tree 6 - renumber nodes" BCUT [RENUMBER=yes] pruned[6]; NEWTREE=tree "display the tree" BRDISPLAY [PRINT=summary,details,indented,bracketed,labelleddiagram,\ numbereddiagram] tree