Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Filtering observations.. Urgent HELP


From   Alonso Viloria <[email protected]>
To   [email protected]
Subject   st: Filtering observations.. Urgent HELP
Date   Mon, 29 Aug 2005 15:35:49 -0400

I am working with Panel data information. I am trying to create a filter 
to tell me Which individuals have complete information for a set of 
variables AND just let me know which of them -individuals- have more than 
certain amount of observations. For example if a have data for 10 years i 
want stata to tell me which individuals have information of the variables 
in the same years AND only let me know those individuals that have data 
for more than 6 years.... Thanks for any pointers in the subject. As you 
can see i am rather a neophyte in the subject. As far as I have gotten is: 
by shcode: summarize reservas depeendencia if (reservas~=.) & 
(dependencia~=.)

What i want to create is something like:
by shcode: summarize reservas depeendencia if (reservas~=.) &
(dependencia~=.) & (Number of Observations or periods in which i find
both "dependencia" and "reservas" or matching datas are more than 9 periods.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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