[R] Saving predict

Paul Hiemstra p.hiemstra at geo.uu.nl
Fri Dec 4 17:09:52 CET 2009


?arima
?write.table

groet,
Paul

Jose Narillos de Santos wrote:
> Hi all,,I´m using function arima()
>
> I.e
> series is my data
>
> model<-arima(series,c(1,0,0))
> forecast<-predict(model,80)
> I want to create a variable:
> b1<-forecast$pred - 1.96*forecast$se
> and save in a txt file
>
> but using this:
>
> save(b1, file= "b1.txt")
>
> creates afile butwith this  inside:
>
> ‹      ]Ã’{H“Q ðï~Ÿß|¦›ùÊÊLJI³ÔiÍW*¥þ‘Í-l)Ëœ%¤ )Å mæ#)­±,›
> ÉйRIñ¸åœÈÊiSÂfµd›bҝôGuážß¹çr9p9œø´»4;‚ H‚´Å‘©‰"¦­¥žL”#ÎR€ez´
> ãÊÁ¹1ìy‡÷3pN8Ä®°{,IÚ6¡¢˜ÊW²–ížà ôâ!ã“6éúžù=­à 
> êÍžó{·â6ƒ½l?øß×OõƒMw_ϐ¬û—¯•5ãëK÷ÖÝ©ÀZ+òÛ×
> ô=é„ëæ ÉÊ(•YV·‘÷BçXùÔ(²E2 †uaÍz J
> Yj±+P‘tSU[Pt­gí<ïOÆjS9@¶,ŠËx¹@Þ)k¤$™TìÜ $/¼ÈA˜ dôz®‡p ÈÀù¢iþ
> ½ÊW™¡@²räÖOdœbë¤r@c¾ån€~ô™óW§ }û\M*g -¹w†ûšÛŸìj<
> hfEs! 4¡»Q‘h’Ë6%G Òö&J MHdIüt@ã­§‹i<å¢@ê>ÐÇ/@£2Ôº èÜM³¡ ôV#
> x=†Ý¥l8 h¤jgɨKr¥¦@õŽ|u=ö¿Ùæ ¡Ånº2
> ûÔEÙTŒÍ©ËÔ¬cõꙩX§(Õø,
> Á/ë2óM¬š°â°JIÄŠÛ°¬ºjÂÞ­î•~ÄŠ—]êDØ|¹°¿{9£tnË*‘âÿäÈýõ\lr—oö*6a’Ǧ±1:e¨{¢>Έû'öî°Ü‡{ZÎl^Bb<6ØËÌWbGŽ¤¯aåÆeKÿƒ‰5ß—°>Ú®ü7™TacM*&ŸØZ1…Â-£Wˆ?ëŸ'ô%ÁÅ‚œ0ÿžðBKeÓ²7–å'
>
>
>
> Can anyone help me to do  it?
>
> Do you know also a document wich expalin how works and calculates
> modelpredictions?
>
> 	[[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.
>   


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul




More information about the R-help mailing list