楼主: 白下
48276 8

[问答] 关于R中“could not find function”的问题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

47%

还不是VIP/贵宾

-

威望
0
论坛币
801 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
204 点
帖子
9
精华
0
在线时间
22 小时
注册时间
2011-1-5
最后登录
2014-1-23

楼主
白下 发表于 2011-3-22 04:15:42 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
新手问个初级问题,还请各位不吝赐教。
首先我想模拟一个Y(t)=0.75Y(t-1)+e(t)-0.75e(t-1)的方程,google了一下,给出的列子是:
## armaSim -

# Simulation:


x = armaSim(model = list(ar = c(0.5, -0.5), ma = 0.1), n = 1000)

但是套用时会说could not find function armasim。。。

紧接着,因为我需要fit an ARMA(1,1) to the simulated data,于是继续google,得到例子:
## armaFit -

# Estimate the Parameters:


fit = armaFit(~ arma(2, 1), data = x)


print(fit)

但是套用的时候又被说could not find function armafit。。。(泪牛满面)

然后我试验了上课时本来ok的GARCH的命令,得到了could not find function garch.sim。。。

到这里俺就彻底晕了……
还请各位老师同学指点一二,感谢感谢。
二维码

扫码加我 拉你入群

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

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

关键词:function Could find Fin CTI find not function

沙发
babilun 发表于 2011-3-22 04:47:42
Hey, every time you want to use a certain function, such as armaSim(), etc., you need to load the package(s) that provides that function. So, you need to add this statement before you run your above codes:
require(fArma);

You can install this package if you have not use it before.... just go to "package"->"install packages"->..... select fArma package, then install.  After you install the package, you can then
require(fArma);
...
you codes here
...
已有 1 人评分论坛币 收起 理由
admin_kefu + 100 热心帮助其他会员

总评分: 论坛币 + 100   查看全部评分

藤椅
白下 发表于 2011-3-22 05:05:02
非常感谢!^ ^ok了!

板凳
trier2006 发表于 2011-3-22 09:04:30
babilun 发表于 2011-3-22 04:47
Hey, every time you want to use a certain function, such as armaSim(), etc., you need to load the package(s) that provides that function. So, you need to add this statement before you run your above codes:
require(fArma);

You can install this package if you have not use it before.... just go to "package"->"install packages"->..... select fArma package, then install.  After you install the package, you can then
require(fArma);
...
you codes here
...
呵呵正解!
最好的医生是自己,最好的药物是时间……

报纸
primula 在职认证  发表于 2011-4-12 21:26:30
感谢babilun,疑惑被解开了。
谢谢。

地板
MDLLMDLL 发表于 2012-5-17 16:42:50
babilun 发表于 2011-3-22 04:47
Hey, every time you want to use a certain function, such as armaSim(), etc., you need to load the pa ...
could not find function "anyDuplicated"
您知道这个函数在什么包里面吗 谢谢

7
babilun 发表于 2012-6-4 15:05:24

8
jiangyuecherry 发表于 2013-10-29 17:06:29
babilun 发表于 2011-3-22 04:47
Hey, every time you want to use a certain function, such as armaSim(), etc., you need to load the pa ...
请问提示 could not find function: ma.solve应该怎么办?

9
zr0719 发表于 2017-9-28 14:21:26
babilun 发表于 2011-3-22 04:47
Hey, every time you want to use a certain function, such as armaSim(), etc., you need to load the pa ...
thank you very much ~

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

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