Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

r - Error in optim(init[mask], armaCSS, method = optim.method, hessian = FALSE, : non-finite value supplied by optim

Hi I'm trying to build a Arima forecast using multiple exogenous variables in my R 4.0.2. My exogenous variables are binary & contain 0 and 1 only. I wrote following code

z=Arima(train$Util,order=c(2,1,2),xreg=as.matrix(train[,c(6,7)]))

I'm getting the error message

Error in optim(init[mask], armaCSS, method = optim.method, hessian = FALSE,  : 
non-finite value supplied by optim

My data is looking like

Date    Util  ... ... ... Weekdays  Weenend
 1      0.425  ... ... ...     1       0
 2      0.351  ... ... ...     1       0
 3      0.382  ... ... ...     1       0
 4      0.451  ... ... ...     1       0
 5      0.421  ... ... ...     1       0
 6      0.701  ... ... ...     0       1
 7      0.752  ... ... ...     0       1

I'm seeing maximum utilization during week end so I have created two variables weekdays & weekend & trying to incorporate them in my Arima Can you help me to resolve the issue?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...