Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: balanced sub-panel to test for selection bias


From   Olga Lyashevskaya <[email protected]>
To   [email protected]
Subject   st: RE: balanced sub-panel to test for selection bias
Date   Thu, 24 May 2007 04:30:35 -0700 (PDT)

Thank you very much for your help, but last command
results in removing  
ALL my observations. Maybe I am doing smth wrong?


egen nfarm = count(farm),by(year)
summarize nfarm, meanonly
by year: keep if nfarm == `r(max)'

Kind regards,
Olga


 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
*
*   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