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: lags and leads


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: lags and leads
Date   Sun, 1 May 2011 11:23:19 +0100

Look at the help for -tsset- and -varlist-. The operator F. gets the
next value in a time series.

Nick

On Sun, May 1, 2011 at 10:33 AM, Bobasu Alina <[email protected]> wrote:
> Hello! I am new to Stata and thus have several questions. First of all I would
> like to ask you how can I specify the expected value of a variable for the next
> period. I know how lags are specified but I cannot find information regarding
> the value of the variable for the next period, something like variable(1)?
>
> Secondly I would like to ask you how can I import data by defining the variable
> on a time set? If I have the value of income for annual data covering 1997-2009
> how can I import the data in order to regress afterwards the variable on its
> lags? if I do not import the data in this way I obtain the following message:
> time variable not set.

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