Next: strconcat() Up: MacAnova Help File Previous: sqrt()   Contents

stemleaf()

Usage:
stemleaf(x [, nstems, outliers:F, depth:F, stats:T,\
   title:"Your title"]), x a REAL vector



Keywords: descriptive statistics, plotting
stemleaf(var) prints a stem and leaf display of the data in REAL vector
var.  The number of stems depends on the number of non-missing values
(must be at least 2) and the number of lines on the screen, and the
maximum number of leaves printed is determined by the screen width (see
subtopic 'options:"width"').  An asterisk as the last leaf on a stem
indicates there has been truncation and some leaves have not been
printed.

stemleaf(nvar,nstems), nstems an integer > 1, selects the number of
stems to be as large as possible <= nstems.

The data are scaled by a power of 10 and rounded toward zero so as to be
integers.  Then the final digits are the leaves and the stems are the
leftmost digits or 0.  If two stems go with a value, they are labeled,
for example, as '2*' and '2.'), If 5 stems go on a value, they are
labeled, for example, as '2*', '2t', '2f', '2s', and '2.'.  A final line
specifies the unit of the leaf digit.

By default, outliers more than 1.5 IQR beyond the lower or upper
quartiles are listed separately and are not put on a stem, where IQR is
the inter-quartile range.

By default, a "depth" column accumulating counts from each end is
printed.  The depth for the stem that contains the median is the number
of leaves on that stem enclosed in parenthese.

With both forms additional keyword arguments are as follows:
   outliers:F         This suppresses the special treatment of outliers;
                      all values are put on stems
   depth:F            Suppresses printing the "depth" column.
   stats:T            Print the sample size, extremes and quartiles.
   title:"Your title" Prints the specified CHARACTER variable before
                      display

See also boxplot().


Gary Oehlert 2003-01-15