-------------------------------------------------------------------------------
help for adjacent
-------------------------------------------------------------------------------

List adjacent values of variables

adjacent varlist [weight] [if exp] [in range] [ , by(varlist) missing ]

fweights and aweights are allowed; see help weights.

Description

adjacent lists adjacent values for a set of numeric variables in varlist. Calculate the upper and lower quartiles, p75 and p25, and thus the interquartile range iqr = p75 - p25. Then the adjacent values are the highest value not greater than p75 + 3/2 iqr and the lowest value not less than p25 - 3/2 iqr. The adjacent values are marked graphically on a box plot as drawn by graph box or graph hbox by the ends of the whiskers drawn out from each central box.

Options

by() defines one or more grouping variables. (When using graph box or graph hbox, these variables would be specified in by() or over() options.)

missing, applicable only with by(), specifies that results for observations with missing values of variables specified in by() should be included in the tabulation. The default is to exclude them.

Examples

. adjacent mpg, by(foreign rep78)

Author

Nicholas J. Cox, University of Durham, U.K. n.j.cox@durham.ac.uk

Also see

On-line: help for graph box, extremes (if installed)