Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Listing var1 if var* equals X

From   Lars Folkestad <>
To   "" <>
Subject   st: Listing var1 if var* equals X
Date   Tue, 31 Jan 2012 14:32:17 +0100

Dear List

I am sure there is a quick fix for this, but i have my data in a wide format and have the following data

Id hospital1 hospital2 hospital3 … hospitalN

I would like to list the id if any of the hospital* equals a given code fx X2

I have tried
. list id if hospital* = X2
But that dos not work.

What am i doing wrong?


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index