Bookmark and Share

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


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

st: Data management


From   Jeetendra Aryal <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Data management
Date   Thu, 21 Oct 2010 10:11:55 +0200

Dear Statalists
I have a big data set which is as follows:
HHN   PN    Rental type
1          1        1
1          2        0
1          3        0
2          1        1
2          2        1
3          1        1
3          2        0
3          3        1
4          1        1
4          2        1
4          3        1
5          1        0
5          2        1
5          3        1
 
Now the question is: Each household has more than one plot of land. The household can use it or rent it out or both. I want to keep only those households which have both rental types. For example, in the above dataset I want to keep only household number 1, 3 and 5. Is there any way that I can do it easily, rather than doing manually?
Best regards,
Jeetendra Aryal
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index