前辈您好!我在R中估计STAR模型时出现了下面的提示:
> xx<-star(x,m=3,d=2,control=list(maxit=3000))
Using default threshold variable: thDelay=0
Testing linearity... p-Value = 6.281377e-08
The series is nonlinear. Incremental building procedure:
Building a 2 regime STAR.
Using default threshold variable: thDelay=0
Performing grid search for starting values...
Starting values fixed: gamma = 40 , th = 10.80275 ; SSE = 576.5637
Optimization algorithm converged
Optimized values fixed for regime 2 : gamma = 40.00044 , th = 10.76126
Testing for addition of regime 3.
Estimating gradient matrix...
Done. Computing the test statistic...
Done. Regime 3 is needed (p-Value = 0.01466867 ).
Adding regime 3 .
Fixing good starting values for regime 3 ...
错误于if (cost <= bestCost) { : 需要TRUE/FALSE值的地方不可以用缺少值
此外: 警告信息:
In rbind(object$model.specific$phi1, rnorm(3)) :
number of columns of result is not a multiple of vector length (arg 2)
这是不是因为数据本身的原因出现的呢?如果不是的话怎么修正呢?谢谢!
2# epoh


雷达卡
京公网安备 11010802022788号







