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: continuous data


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: continuous data
Date   Mon, 16 Jul 2012 10:26:36 +0100

Muhammad is correct. In addition, -xtpatternvar- (SSC) offers an easy handle

xtpatternvar , gen(pattern)
keep if strpos(pattern, "11111")

Nick

On Mon, Jul 16, 2012 at 10:15 AM, Muhammad Anees <[email protected]> wrote:

> This has been very recently responded by Nick Cox on the list and
> information about this is available from Statalist's FAQs:
>
> Check it here:
>
> FAQ     . . . . . . Identifying runs of consecutive observations in panel data
>         . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox and V. Wiggins
>         8/02    How do I identify runs of consecutive observations
>                 in panel data?
>                 http://www.stata.com/support/faqs/data/panel.html

 On Mon, Jul 16, 2012 at 2:02 PM, Ozgur Ozdemir
<[email protected]> wrote:

>> I am using Stata 10 and would like to create a continuous data from a panel. The current panel is unbalanced covering 2000-2010 with company information. I would like to have the companies who has at least 5 years of continuous data in any part of the panel such as 2000-2004 or 2005-2009 etc. is there any easy way of doing it ?

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