SAS/STAT 9.1 Users Guide, Volumes 1-7

Missing Values

An observation with a missing value for the NAME variable is omitted from processing. If the PARENT variable has a missing value but the NAME variable is present, the observation is treated as the root of a tree. A data set can contain several roots and, hence, several trees.

Missing values of the HEIGHT variable are set to upper or lower bounds determined from the nonmissing values under the assumption that the heights are monotonic with respect to the tree structure.

Missing values of the FREQ variable are inferred from nonmissing values where possible; otherwise , they are treated as zero.

Output Data Set

The OUT= data set contains one observation for each leaf in the tree or subtree being processed . The variables are as follows :

The CLUSTER and CLUSNAME variables are missing if the corresponding leaf has a nonpositive frequency.

Displayed Output

The displayed output from the TREE procedure includes the following:

By default, the tree diagram is oriented with the height axis vertical and the object names at the top of the diagram. If the HORIZONTAL option is specified, then the height axis is horizontal and the object names are on the left.

ODS Table Names

PROC TREE assigns a name to each table it creates. You can use these names to reference the table when using the Output Delivery System (ODS) to select tables and create output data sets. These names are listed in the following table. For more information on ODS, see Chapter 14, 'Using the Output Delivery System.'

Table 76.2: ODS Tables Produced in PROC TREE

ODS Table Name

Description

Statement

Option

Tree

Line-printer plot of the tree

PROC

LINEPRINTER

TreeListing

Line-printer listing of all nodes in the tree

PROC

LIST

Категории