------------------------------------------------------------------------------- help foradjacent-------------------------------------------------------------------------------

List adjacent values of variables

adjacentvarlist[weight] [ifexp] [inrange] [,by(varlist)missing]

fweights andaweights are allowed; see help weights.

Description

adjacentlists adjacent values for a set of numeric variables invarlist. 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 inby()orover()options.)

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

Examples. adjacent mpg, by(foreign rep78)

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

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