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 on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: consecutive years


From   Neil Shephard <nshephard@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: consecutive years
Date   Tue, 19 Oct 2010 09:44:11 +0000

On Tue, Oct 19, 2010 at 9:35 AM, Biljana Dlab <dlab@isb.uzh.ch> wrote:
> The following error message is generated:
> . tsset firm year
> . gen break=L.firm==.
> . bys firm(year): gen spellid=sum(break) list
> time-series operators not allowed
>
> if list is taken out - again the same error message:
> . bys gvkey_n(fyear): gen spellid=sum(break)
> time-series operators not allowed

For starters -list- should be on a separate line as it is in Maarten's
original message.

The error message you are getting is because you have not included a
space between 'firm' and the '(year)' again as Maarten had originally
written it...

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Maarten buis
> Sent: 18 October 2010 15:05
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: consecutive years
>
> ....
> bys firm (year) : gen spellid = sum(break)
> list



-- 
"Our civilization would be pitifully immature without the intellectual
revolution led by Darwin" - Motoo Kimura, The Neutral Theory of
Molecular Evolution

Email - nshephard@gmail.com
Website - http://kimura-no-ip.org/
Photos - http://www.flickr.com/photos/slackline/
*
*   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