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]

Re: st: From: Qunzi Zhang <[email protected]>


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: From: Qunzi Zhang <[email protected]>
Date   Sun, 4 Nov 2012 14:04:24 -0500

Please use an informative subject for your posts.

Steve

On Nov 4, 2012, at 1:17 PM, [email protected] wrote:

Dear All,
I have a dataset as below

date          firm 1   firm2    firm3 .....(permno as identifer index for firm)
1970Jan01   1         2      nan
1970Jan02   1         2      nan
..........................................
1990Jan01   1        2        4
1990Jan02   1        2        4

.........................................
1990Jan01   1      nan       nan
1990Jan02   1      nan       nan


I would like to store the time/row index for the first nan value and
the first non-nan value in this data set. Can anyone give me an
example about how to do this?

Thanks
*
*   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/


*
*   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