Displaying 1 result from an estimated 1 matches for "sweepzoo".
2010 Aug 11
2
Sweeping a zoo series
...1.223073528
Dec 1901 -1.23347027 -1.09699304 0.59398031 -0.22269292 -0.21569543
1.389667825
The statistic to be swept out is itself a zoo series with matching column
names.
There are twelve valies for each column representing an monthly average for
that
series.
The average is to be subtracted
sweepzoo<-zoo(matrix(rnorm(72),ncol=6), frequency=12)
colnames(sweepzoo)<-cnames
sweepzoo
12345 23456 34567 45678 56789 67890
1(1) -2.5569706 -0.4375741 -0.1803866 -0.6303760 -0.08995198 2.7293244
2(1) 1.4154202 0.2559212 0.2104513 0.7439446 0.84897905 -0...