Stata 11 help for inspect

help inspect dialog: inspect -------------------------------------------------------------------------------

Title

[D] inspect -- Display simple summary of data's attributes

Syntax

inspect [varlist] [if] [in]

by is allowed; see [D] by.

Menu

Data > Describe data > Inspect variables

Description

The inspect command provides a quick summary of a numeric variable that differs from the summary provided by summarize or tabulate. It reports the number of negative, zero, and positive values; the number of integers and nonintegers; the number of unique values; and the number of missing; and it produces a small histogram. Its purpose is not analytical but is to allow you to quickly gain familiarity with unknown data.

Examples

--------------------------------------------------------------------------- Setup . sysuse auto

Display simple summary of mpg . inspect mpg

--------------------------------------------------------------------------- Setup . sysuse census

Display simple summary of region, a variable with a value label . inspect region

--------------------------------------------------------------------------- Setup . sysuse citytemp

Display simple summary of tempjan, a variable with missing values . inspect tempjan ---------------------------------------------------------------------------

Saved results

inspect saves the following in r():

Scalars r(N) number of observations r(N_neg) number of negative observations r(N_0) number of observations equal to 0 r(N_pos) number of positive observations r(N_negint) number of negative integer observations r(N_posint) number of positive integer observations r(N_unique) number of unique values or . if more than 99 r(N_undoc) number of undocumented values or . if not labeled

Also see

Manual: [D] inspect

Help: [D] codebook, [D] compare, [D] describe, [D] isid, [R] lv, [R] summarize, [R] table, [R] tabulate oneway, [R] tabulate twoway, [R] tabulate, summarize()


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index