[R] plotting predictions
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu May 15 10:54:44 CEST 2008
You appear to be doing the differencing twice. Do it only in arima, and
not in the data you supply.
On Thu, 15 May 2008, Habib, Mohamed A F A M wrote:
> I have the following model:
>
> m1.dis=arima(diff(diff(log(ts1),lag=12)),order=c(0,1,1),seasonal=list(order=c(0,1,1),period=12))
>
> I would like to know how to plot the correct predictions in the original
> units because I am trying the following code but it is not working.
For some value of 'not working' unknwon to us. Please see the footer to
this (and very) message.
> I believe that there must be something to account for the differencing.
>
> plot(m1.dis,n1=c(1990,1),n.ahead=36,xlab='Year',type='o',ylab='Discharge (cfs)',transform=exp)
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
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
More information about the R-help
mailing list