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


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