Statalist


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

st: question on keeping observations - selecting substitute instituions for sampled institutions


From   Gáti Annamária <[email protected]>
To   [email protected]
Subject   st: question on keeping observations - selecting substitute instituions for sampled institutions
Date   Wed, 06 Jan 2010 12:55:43 +0100

Dear List users,

I am trying to collect a sample out of schools. I have successfully sampled 300 institutions out of 4000. I have now a dataset containing 4000 observations and a variable named sample indicating whether a given institution is part of my sample (code=1) or not (code=0).

As I also need 2 substitutes for each institutions I would like to chose the ones that are right above and under the sampled school. Is there a simple way to do this with stata? I was browsing through the Keep observations commands but didn’t manage to find out how to do this.

Thank U in advance

Annamaria
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index