Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: How to drop missing values by period?


From   Xixi Lin <winnielxx@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index