[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