Skip to content

Implementing an ARMA filter

2 messages · Jingzhao Ou, Brian Ripley

#
Dear all,

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? 

Thanks a lot!

Best regards,
Jingzhao
#
On Sun, 8 May 2005, Jingzhao Ou wrote:

            
You can help yourself by reading that page more closely.

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