[Rd] lag (PR#491)
kthaka@uta.fi
kthaka@uta.fi
Fri, 17 Mar 2000 10:16:11 +0100 (MET)
Full_Name: Hannu Kahra
Version: 1.0.0
OS: Windows
Submission from: (NULL) (153.1.50.127)
x1 <- lag(x, k=1) returns the original series x. The time series is not
shiftet at all. Only the time is shiftet: for x1 new start = old start -1
and new end = old end -1. When I run, e.g. lm(x~x1) the result is not what
I expect. Both x and x1 are time series. Is this a bug or am I forgetting
something?
Regards
Hannu Kahra
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._