Skip to content
Prev 79082 / 398502 Next

regression using a lagged dependent variable as explanatory variable

On Sat, 15 Oct 2005, giacomo moro wrote:

            
The reason is that lm() itself does not match time series by their time
attribute (and apart from the "tsp" attribute x and lag(x, -1) are the
same vector). On ?lm there is a description what you could do to create a
time series and then apply lm().
As Gabor already wrote, there are two convenience interfaces available in
the packages dyn and dynlm.
Z