[R] Meaning of "lag 0.2, 0.4,..." ?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Apr 8 10:18:48 CEST 2010


On Wed, 7 Apr 2010, Bogaso wrote:

>
> Please see that correlogram for a arbitrary time series :

library(zoo) ## you example does not work without it!

> acf(zooreg(rnorm(39), start=as.yearmon("2008-01-01"), frequency=12))
>
> What is the meaning of lag 0.2, 0.4, ........ in the plot? Those should not
> be integers? Or I am missing something?

You are.  They are in years: you told R that the series was monthly 
with a time unit of years.

>
> Thanks
> -- 
> View this message in context: http://n4.nabble.com/Meaning-of-lag-0-2-0-4-tp1765093p1765093.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^



-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list