Re: [R] How to remove autocorrelation from a time series?

From: Dieter Menne <>
Date: Thu, 15 May 2008 15:39:46 +0000 (UTC)

Claudia D'Aniello <kikki_80 <at>> writes:

> Dear R users,
> someone knows how to remove auto-correlation from a frequencies time series?
> I've tried by differencing (lag 1) the cumulative series (in order to have
only positive numbers) , but I
> can't remove all auto-correlation.
> If it's useful I can send my db.
> x <- # autocorrelated series
> new1<-cumsum(x)
> new2<-diff(new1,lag=1,differences = 1)
> acf(new2) # remains autocorrelated

This might come close to what your want

ar = arima(lh, order = c(1,0,0))

Dieter mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 15 May 2008 - 21:14:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 21:30:46 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive