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: How to drop missing values by period?


From   Xixi Lin <[email protected]>
To   statalist <[email protected]>
Subject   st: How to drop missing values by period?
Date   Mon, 11 Feb 2013 09:53:18 -0500

Hi,

I tried to drop missing values period by period, in 120 periods. In other
words, in period 1, I want to drop the observations if dependent variables
have missing values only in period 1; while in period 2, drop the
observations if dependent variables have missing values only in period 2,
should keep those that missing in period 1 but not missing in period 2. For
instance:

In period 1, I want to keep id 1; in period 2, I want to keep id 1 &2.

Does anyone knows how to do that? Thanks a lot.

Best,
Xixi Lin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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