楼主: oxfei
2847 1

[求助]请教一个关于MASS Library里的arima问题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

89%

还不是VIP/贵宾

-

威望
0
论坛币
1755 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1219 点
帖子
75
精华
0
在线时间
152 小时
注册时间
2007-12-8
最后登录
2023-3-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

请教一个关于MASS Library里的arima问题:

当我想用predict命令去预测ccard.arima1这个arima模型的时候会有这么一个错误出现?!请教高手一下,非常感谢!!

> ccard.arima.fore = predict(ccard.arima1, 12)
Problem in &&: No data to interpret as logical value: e1 && e2
Use traceback() to see the call stack

我搜索了一下相应的问题,找到了这么一个和我遇到同样问题的人

I am new to fitting and forecasting time series in Splus,
and am having major problems forecasting.

I am using Splus 6.0 Professional Release 2 on a
PC, Windows 2000

I have 9 years of fortnightly water turbidity data
and have fitted an ARIMA(0,1,1) model using both
1, V&R's arima
2. Splus's arima.mle  (I've even tried the Splus windows!!!!)
My time series is a timeSeries object.
All methods give the same estimates, so far so good.

Now I want to forecast the next 12 fortnights of turbidity.
I have tried using
1. predict (V&R4th edn - used following arima)
2. arima.forecast (Splus - used following arima.mle)

when I use predict, the error message is
"Problem in &&: No data to interpret as logical
value: e1 && e2"

二维码

扫码加我 拉你入群

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

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

关键词:Library BRARY ARIMA mass bra 请教 ARIMA Library mass

回帖推荐

abelus 发表于2楼  查看完整内容

In R, there are no any errors:> library(MASS)> mod <-  arima(lh, order = c(1,0,0))> predict(mod, 12) # or predict(mod, n.ahead=12)$predTime Series:Start = 49 End = 60 Frequency = 1  [1] 2.692626 2.573609 2.505301 2.466097 2.443597 2.430683 2.423271 2.419018 2.416576 2.415175 2.414371 2.413910You'd better use "traceback() " to see where is the error.Good luck.$seTime Series:Start ...

本帖被以下文库推荐

沙发
abelus 发表于 2008-1-7 10:03:00 |只看作者 |坛友微信交流群
In R, there are no any errors:
> library(MASS)
> mod <-  arima(lh, order = c(1,0,0))
> predict(mod, 12) # or predict(mod, n.ahead=12)
$pred
Time Series:
Start = 49
End = 60
Frequency = 1
 [1] 2.692626 2.573609 2.505301 2.466097 2.443597 2.430683 2.423271 2.419018 2.416576 2.415175 2.414371 2.413910





You'd better use "traceback() " to see where is the error.
Good luck.

$se
Time Series:
Start = 49
End = 60
Frequency = 1
 [1] 0.4443979 0.5123881 0.5328878 0.5394698 0.5416204 0.5423269 0.5425594 0.5426360 0.5426612 0.5426695 0.5426722
[12] 0.5426731


In S-Plus8.0, there are no any errors also:
> library(MASS)
> lh
 1: 2.4 2.4 2.4 2.2 2.1 1.5 2.3 2.3 2.5 2.0 1.9 1.7 2.2 1.8 3.2
16: 3.2 2.7 2.2 2.2 1.9 1.9 1.8 2.7 3.0 2.3 2.0 2.0 2.9 2.9 2.7
31: 2.7 2.3 2.6 2.4 1.8 1.7 1.5 1.4 2.1 3.3 3.5 3.5 3.1 2.6 2.1
46: 3.4 3.0 2.9
 start deltat frequency
     1      1         1
> mod <- arima(lh, order=c(1, 0, 0))
> predict(mod, n.ahead=12)
$pred:
49: 2.692227 2.572992 2.504567 2.465300 2.442765 2.429833
55: 2.422412 2.418153 2.415709 2.414307 2.413502 2.413040
 start deltat frequency
    49      1         1

$se:
49: 0.4443986 0.5123758 0.5328678 0.5394460 0.5415949 0.5423008
55: 0.5425330 0.5426095 0.5426346 0.5426429 0.5426457 0.5426466
 start deltat frequency
    49      1         1

已有 1 人评分论坛币 热心指数 收起 理由
crystal8832 + 10 + 1 热心帮助其他会员

总评分: 论坛币 + 10  热心指数 + 1   查看全部评分

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 02:11