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

RE: st: Missing values and listing IDs

From   "Nick Cox" <>
To   <>
Subject   RE: st: Missing values and listing IDs
Date   Thu, 13 Nov 2008 13:04:07 -0000

Note that what you must type, or otherwise get Stata to see, is 


That is, Stata will not replace an ellipsis ... with what you intend or

That said, you can go 

list id if missing(x1,x2,x3,x4,x5,x6)

The new variable is not essential for this purpose. 


Johannes Geyer

gen miss0 = missing(x1,x2,x3,...,x6)
list id if miss0 == 1


> 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:

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