Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: more bizarre missing observations

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: more bizarre missing observations
Date   Thu, 9 Oct 2003 14:10:59 +0100

Ernest Berkhout replied to Kristien Verheyen

> >I have a similar problem to Robert's in that I know for
> sure there are
> >missing data for a particular variable ('canter') but if I type
> >
> >tab canter if canter==.
> >
> >I am told there are 'no observations'
> >
> >canter is stored as float but following Neil's suggestion
> still gives me 'no
> >observations'. Please can anyone tell me how I find out
> exactly how many
> >missing values there are?
> What do you want Stata to tabulate? It looks for values to
> display in a
> table, but because it is restricted to missing values it
> doesn't find them.
> It will work if you specify the option ", missing" at the
> end of the
> command. Though if you want to inspect the data I myself
> mostly use the
> "codebook" command. Or, if you have a whole list of
> variables, one can
> summarize and look at the N that is reported for each variable, and
> coompare that with the total N.


. count if missing(canter)


. ssc inst npresent-nmissing
. nmissing
. nmissing canter

[email protected]

*   For searches and help try:

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