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.
or
. count if missing(canter)
or
. ssc inst npresent-nmissing
. nmissing
. nmissing canter
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/