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]

Re: st: continuous data


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <anees@aneconomist.com> 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
<ozdemirozgur@hotmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index