On Tue, May 8, 2012 at 12:14 PM, Apoorva Gupta <apoorva.ni...@gmail.com> wrote:
> I have checked that. It allows me to get the t-1, t-2 value but not the t+1
> value.
> Is there any other way of achieving this other than using the plm package?
>
It would be easier to help if you provided a minimal reproducible
example, as requested in the posting guide. Have you tried
diff(x, lag = -1, ...)

or
lag(x, k = -1, ...)

Perhaps this does what you want. Regards
Liviu

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to