Displaying 1 result from an estimated 1 matches for "pi4w".
Did you mean:
pi4b
2012 Apr 11
2
What is a better way to deal with lag/difference and loops in time series using R?
...exactly the same! I usually would
like to calculate the difference between the vector of interest and the
corresponding values 4 quarters ahead, but it is zero!
> PI1[1][1] 2.747365> PI4[1][1] 2.747365
One remedy that comes into my mind is to use window,but a warning message
emerges
> PI4w<-window(PI4, start=start(PI1), end=end(PI1))Warning message:In window.default(x, ...) : 'end' value not changed> PI4w Qtr1 Qtr2 Qtr3 Qtr4
1983 -1.1900612 -0.5530318 0.6868747 0.9539110
Similar problems happen with the usage of the function "dif...