我一直收到这样的错误:
Error in `coef<-.corARMA`(`*tmp*`, value = c(18.3113452983211, -1.56626248550284, :
Coefficient matrix not invertible
或者像这样:
Error in gls(archlogfl ~ co2, correlation = corARMA(p = 3)) : false convergence (8)
使用nlme
中的gls
函数。
前面的例子是使用模型gls(archlogflfornma〜nma,correlation = corARMA(p = 3))
,其中archlogflfornma
是
[1] 2.611840 2.618454 2.503317 2.305531 2.180464 2.185764 2.221760 2.211320
而 nma
是什么呢?
[1] 138 139 142 148 150 134 137 135
您可以在后面看到模型,
archlogfl
是什么。[1] 2.611840 2.618454 2.503317 2.305531 2.180464 2.185764 2.221760 2.211320
[9] 2.105556 2.176747
而co2
则是
[1] 597.5778 917.9308 1101.0430 679.7803 886.5347 597.0668 873.4995
[8] 816.3483 1427.0190 423.8917
我使用的是 R 2.13.1 版本。
Roland