Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Missing values and listing IDs


From   "Ashim Kapoor" <ashimkapoor@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Missing values and listing IDs
Date   Thu, 13 Nov 2008 18:39:49 +0530

Hi!

would missing(x1-x6) work? I have seen that sometimes.

Ashim

On Thu, Nov 13, 2008 at 6:34 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> Note that what you must type, or otherwise get Stata to see, is
>
> missing(x1,x2,x3,x4,x5,x6)
>
> That is, Stata will not replace an ellipsis ... with what you intend or
> imply.
>
> That said, you can go
>
> list id if missing(x1,x2,x3,x4,x5,x6)
>
> The new variable is not essential for this purpose.
>
> Nick
> n.j.cox@durham.ac.uk
>
> Johannes Geyer
>
> gen miss0 = missing(x1,x2,x3,...,x6)
> list id if miss0 == 1
>
> Sham
>
>> I wish to list the ID numbers of those individuals in my dataset
>> that have at least one missing value out any six variables (x1-x6).
>> At the moment I have used the following logic:
>>
>> list responder_status ID if  x1==. | x2==. | ///
>> x3==. | x4==. | x5==. | x6==.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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