楼主: saji
5644 6

再次求教:如何查看“predict”命令编码 [推广有奖]

  • 0关注
  • 0粉丝

继续迷惘的帅哥。。。

已卖:1249份资源

博士生

2%

还不是VIP/贵宾

-

威望
0
论坛币
172485 个
通用积分
5.7200
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
3112 点
帖子
162
精华
0
在线时间
181 小时
注册时间
2005-3-25
最后登录
2025-5-18

楼主
saji 发表于 2009-2-5 20:23:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
本人建一multiplicative seasonal ARIMA(p,d,q)*(P,D,Q)模型
order为p=1,q=1,d=0; P=0,D=1,Q=1
经R运算后得如下结果:
Coefficients:      
   ar1     ma1   sma1    
   0.7364 -0.5046 -0.9511
s.e.   0.0458   0.0594   0.0130
使用predict命令所得的预测数据很理想

问题是我想查看R中ARIMA模型里的predict的编码是什么,从而了解R中该模型的预测公式,并想法移植到其他语言中。

请各位达人指教下,如何查看predict命令的编码?
我在R中尝试edit(predict)但是得到结果看不懂:
> edit(predict)
function (object, ...)
UseMethod("predict")
<environment: namespace:stats>

[em06][em06]

[此贴子已经被作者于2009-2-5 20:23:33编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:predict Pred ICT edi dic 命令 求教 编码 predict

老子就是黑手党!!!!!!!!! 老子就爱改头像.........

沙发
ruiqwy 发表于 2009-2-5 20:37:00
you can download the package source in CRAN  .tar.gz 

R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

藤椅
saji 发表于 2009-2-5 21:48:00
版主,开玩笑吧
不至于看个命令,就要下载整个软件包吧?
还有其他方法吗?
另外,我输入使用。Internal命令得到:
> .Internal(predict)
错误于.Internal(predict) : .Internal()变元不对

[em06][em06]

[此贴子已经被作者于2009-2-5 21:58:23编辑过]

老子就是黑手党!!!!!!!!! 老子就爱改头像.........

板凳
ruiqwy 发表于 2009-2-5 22:38:00
每个包都提供了源代码,要想学习R的编程,看作者的源代码是最好的方法
R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

报纸
ruiqwy 发表于 2009-2-5 22:41:00
如果光想了解用的是什么模型,一般help里的details都会有提供的。要想改进该模型,最好看源代码
R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

地板
saji 发表于 2009-2-7 15:45:00
已解决,应该使用如下命令:
> methods("predict")
[1] predict.ar*           predict.Arima*
[3] predict.arima0*         predict.glm
[5] predict.HoltWinters*     predict.lm
[7] predict.loess*         predict.mlm
[9] predict.nls*           predict.poly
[11] predict.ppr*           predict.prcomp*
[13] predict.princomp*       predict.smooth.spline*
[15] predict.smooth.spline.fit* predict.StructTS*

  Non-visible functions are asterisked

> getS3method("predict", "Arima")

......
[em05][em05]
老子就是黑手党!!!!!!!!! 老子就爱改头像.........

7
yibaoemily 发表于 2013-7-15 15:58:31
或者用getAnywhere(predict)来看

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 10:01