[R] Taking a lead in panel data

Liviu Andronic landronimirc at gmail.com
Tue May 8 14:51:28 CEST 2012


On Tue, May 8, 2012 at 12:14 PM, Apoorva Gupta <apoorva.nipfp at 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



More information about the R-help mailing list