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, is already up and running.

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

Re: st: growth rate

From   Nick Cox <>
Subject   Re: st: growth rate
Date   Wed, 10 Oct 2012 13:48:59 +0100

-help xtset- explains about setting by panel and year. Once you have
done that correctly

gen growth=D.loggdp

is sufficient.

On Wed, Oct 10, 2012 at 1:41 PM, Lynn Lee <> wrote:

> I use -bysort id: gen growth=D.loggdp- to generate growth rate of GDP in
> panel data. I also wrote -xtset year- before this command, but Stata11 told
> me "time variable not set". I am assuming this command  is only for
> time-series data. What about panel? What is the command used in panel to
> generate growth rate?
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index