Re: [R] Implementing an ARMA filter

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 09 May 2005 - 14:48:53 EST

On Sun, 8 May 2005, Jingzhao Ou wrote:

> I am new to R. I need to implement an ARMA filter, some thing like:
>
> y(n) = a0*x(n) + a1*x(n-1) + b1*y(n-1) + b2*y(n-2)
>
> I checked out the filter manual page. It doesn't seem that the filter function
> can do this job for me. Can any one help me out?

You can help yourself by reading that page more closely.

Check the code for arima.sim, which uses filter for exactly this purpose.

-- 
Brian D. Ripley,                  ripley@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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon May 09 14:57:51 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:39 EST