Displaying 1 result from an estimated 1 matches for "1983q2".
Did you mean:
19832
2012 Apr 11
2
What is a better way to deal with lag/difference and loops in time series using R?
...nd' 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 "diff", which
calculate the difference. I wonder if it is better to work with the dates
(1983Q1, 1983Q2,.....) directly?
If I want to write a loop, say, to conduct some computation from 1983Q1
to 2011Q4, the only way I know is to convert the dates to the ordinal
indices, 1, 2, 3...... Can we work with the dates? Is there any built-in
equality that provides the computation like
1983Q1 +1 equa...