Message-ID: <CAP01uRmDB6ceC_yJ40d3rR4kFshrk-oe8abtm_oQZvB_AyW=OA@mail.gmail.com>
Date: 2012-07-25T11:30:55Z
From: Gabor Grothendieck
Subject: lagged variables
In-Reply-To: <1343203812078-4637734.post@n4.nabble.com>
On Wed, Jul 25, 2012 at 4:10 AM, saraberta <sara.bertapelle at hotmail.it> wrote:
> hi guys,
> i have some trouble in creating lagged variables to use as external
> regressors.
> i'm trying to use lag(x) but it gives me as result the same time series (x),
> adding this part at the end:
>
> attr(,"tsp")
> [1] 0 2323 1
>
> where do i wrong?are there other functions to be used?
> thanks
> sara
>
The dyn and dynlm packages address this problem.
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com