Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.44.0401081300380.14421-100000@gannet.stats>
Date: 2004-01-08T13:06:12Z
From: Brian Ripley
Subject: Help with acf
In-Reply-To: <3FFD527E.3040907@alltel.net>

On Thu, 8 Jan 2004, Stephen Opiyo wrote:

> I would like to get the result of acf min of lag 2 and max of lag 50. 
>  When I use time series  ( acf,  lag.max = 50, type="covariance"),  I 
> got lag 0 to lag 50.  How do I get lag 2 to lag 50?

Subset the answer in the standard way, as in:

data(Nile)
acf(Nile, lag.max = 50, type="covariance", plot=F)$acf[3:51,,]

-- 
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