Skip to content

tsdiag for ar?

2 messages · Dr Carbon, Brian Ripley

#
Is there a way to have the ar function work with tsdiag for on-the-fly
visualization of ar fits? I have to fit a great many models of varying
order and would like to save the diagnostic graphs.

For instance, 
tsdiag(ar(lh))
tsdiag(arima(lh, order = c(3,0,0)))

Thanks...
#
On Wed, 24 Nov 2004, Dr Carbon wrote:

            
First you have to produce them, surely?
That gives an error. All you have to do is to write an "ar" method for 
tsdiag -- a good exercise in R programming for you.