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: Keeping an entire cell based on an observation taking a particular value


From   Dooruj Rambaccussing <[email protected]>
To   [email protected]
Subject   st: Keeping an entire cell based on an observation taking a particular value
Date   Mon, 19 Mar 2012 20:33:40 +0000

Hello,

I am a beginner to stata. I was wondering if someone can help me with
the following issue:

I got a dataset with an id and time, and certain observations say X1,
X2 ...... Xk. My variable  Xk has got missing values. I would like to
keep an id when a certain condition holds, suppose Xk(t) ==1, and I
would also like to keep the missing obs. Can anyone help me with this
?

Thank you very much,

D
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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