hi i try to use arima and holtwinter to predict drought from 1895-2006 but i cannot read whole period of time and i try to do the exponent fitting, but it comes out as the coordinate x-y error i send the source code and data to take a look if anyone can help me, i am really new in R thank u so much jam
> hi > i try to use arima and holtwinter to predict drought from 1895-2006 > but i cannot read whole period of time and i try to do the exponent > fitting, > but it comes out as the coordinate x-y error > i send the source code and data to take a look > if anyone can help me, i am really new in R >"PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code." This makes it much easier to help! (how do your numbers look like e.g.) You don't need to send the whole dataset but a few lines would be nice plus what commands you've done to receive those errors... Stefan -=-=- ... Lotteries are a tax on ignorance. (A. Smith - attributed)
On Jul 2, 2007, at 6:22 PM, umarporn charusombat wrote:> hi > i try to use arima and holtwinter to predict drought from 1895-2006unless you have access to time-travel isn't this better called retrodiction? ingmar> but i cannot read whole period of time and i try to do the exponent > fitting, > but it comes out as the coordinate x-y error > i send the source code and data to take a look > if anyone can help me, i am really new in R > > thank u so much > jam > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code.
i try to predict the drought from the precipitation index of each month for 100 year, from 1985 to 2006 here is my code, i have the pdsi<-read.csv("pdsi.csv") pdsi<-ts(pdsi,start=1985,freq=100) HoltWinters(pdsi) plot(pdsi) lines(HoltWinters(pdsi)$fitted,col="red") pdsi.hw<-HoltWinters(pdsi) predict(pdsi.hw,n.ahead=48) plot(pdsi,xlim=c(1985,2006)) lines(predict(pdsi.hw,n.ahead=48),col=2) my error message is *Error in xy.coords(x, y) : 'x' and 'y' lengths differ* ** if anyone know please give me advice *thank in advance* *jam* [[alternative HTML version deleted]]