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]
Re: st: How to drop missing values by period?
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: How to drop missing values by period?
Date
Mon, 11 Feb 2013 14:59:02 +0000
This sounds to me as if you want -keep- and -drop- the same
observations. That can't be done.
Perhaps you should show what your data look like with variable names,
and link your question to such an example.
Nick
On Mon, Feb 11, 2013 at 2:53 PM, Xixi Lin <[email protected]> wrote:
> 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.
*
* 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/