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

st: Re: labelling extended missing values


From   Stephen McKay <S.McKay@bristol.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: labelling extended missing values
Date   Wed, 10 Dec 2003 08:42:59 +0000

--- NBER Test <nbertest@yahoo.com> wrote:

> I am trying to label extended missing values from a
> dataset:
> 1
> .a
> .b
> 2
> with 
> label define q1 1 "a1" 2 "a2" .a "unsure" .b "won't
> tell"
> The data infiles without error.  However,
> . tab q1 if q1 < .
> 
>  Question 1 |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>          a1 |          1       50.00       50.00
>          a2 |          1       50.00      100.00
> ------------+-----------------------------------
>       Total |          2      100.00
> 
> does not display "unsure" and "won't tell".  What
> needs to be done to display these values?

and Friedrich Huebler <huebler@rocketmail.com> noted that

. < .a < .b

However, to get the extra values to display you still need to 
specifically request the option [, missing]

tab q1, mi

and if there are "traditional" missing values (.) you want to exclude 
then use

tab q1 if q1!=., mi

Steve
*
*   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/



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