[R] ts acf accessing to values

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Wed May 8 15:49:08 CEST 2002


On Wed, 8 May 2002, juli g. pausas wrote:

> Hi,
> I don't quite understant how can I access to the acf values from the
> list produced by the acf function
> Example:
>
> library(ts)
> t <- acf(ts.union(ts(1:10), ts(11:20)))
> t$acf
> > tmp$acf
> , , 1
>
>             [,1]        [,2]
> [1,]  1.00000000  1.00000000
> [2,]  0.70000000  0.70000000
> [3,]  0.41212121  0.41212121
> [4,]  0.14848485  0.14848485
> [5,] -0.07878788 -0.07878788
> [6,] -0.25757576 -0.25757576
> [7,] -0.37575758 -0.37575758
>
> , , 2
>
>             [,1]        [,2]
> [1,]  1.00000000  1.00000000
> [2,]  0.70000000  0.70000000
> [3,]  0.41212121  0.41212121
> [4,]  0.14848485  0.14848485
> [5,] -0.07878788 -0.07878788
> [6,] -0.25757576 -0.25757576
> [7,] -0.37575758 -0.37575758
>
> Any help on how can I access to the vector with the acf values?

It's an array for a vector time series, and you are looking at the
array.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list