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: consecutive years
From
Neil Shephard <[email protected]>
To
[email protected]
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 <[email protected]> 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: [email protected] [mailto:[email protected]] On Behalf Of Maarten buis
> Sent: 18 October 2010 15:05
> To: [email protected]
> 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 - [email protected]
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/