您好,我在运行程序时出现了这个问题,麻烦您帮我看下问题出在那里好吗?我运行你发给我的那个程序就不会出问题,谢谢您了啊!
> #file name: y.xls
> class(y)
[1] "data.frame"
> names(y)
[1] "x"
> x
NULL
> x=y$x
> x
[1] 127.4 128.4 127.1 126.6 124.8 122.8 119.4 115.3 111.5 108.6 107.4 106.6
[13] 104.3 104.4 103.4 103.2 102.7 101.1 101.1 102.5 102.9 103.1 103.7 104.3
[25] 102.2 101.0 101.6 101.3 103.6 104.4 104.7 104.9 104.5 104.8 104.4 104.5
[37] 105.5 105.3 105.3 107.1 104.7 104.8 105.2 105.8 107.5 107.9 108.2 108.8
[49] 110.3 110.5 112.2 112.6 114.0 115.1 116.2 116.0 115.7 115.9 116.7 118.8
[61] 121.1 123.2 122.4 121.7 121.3 122.6 124.0 125.8 127.3 127.7 127.5 125.5
[73] 124.1 122.4 121.3 120.7 120.3 118.2 116.7 114.5 113.2 112.1 111.2 110.1
[85] 109.0 109.3 109.8 109.7 108.9 108.6 108.3 108.1 107.4 107.0 106.9 107.0
[97] 105.9 105.6 104.0 103.2 102.8 102.8 102.7 101.9 101.8 101.5 101.1 100.4
[109] 100.3 99.9 100.7 99.7 99.0 98.7 98.6 98.6 98.5 98.9 98.8 99.0
[121] 98.8 98.7 98.2 97.8 97.8 97.9 98.6 98.7 99.2 99.4 99.1 99.0
[133] 99.8 100.7 99.8 99.7 100.1 100.5 100.5 100.3 100.0 100.0 101.3 101.5
[145] 101.2 100.0 100.8 101.6 101.7 101.4 101.5 101.0 99.9 100.2 99.7 99.7
[157] 99.0 100.0 99.2 98.7 98.9 99.2 99.1 99.3 99.3 99.2 99.3 99.6
[169] 100.4 100.2 100.9 101.0 100.7 100.3 100.5 100.9 101.1 101.8 103.0 103.2
[181] 103.2 102.1 103.0 103.8 104.4 105.0 105.3 105.3 105.2 104.3 102.8 102.4
[193] 101.9 103.9 102.7 101.8 101.8 101.6 101.8 101.3 100.9 101.2 101.3 101.6
[205] 101.9 100.9 100.8 101.2 101.4 101.5 101.0 101.3 101.5 101.4 101.9 102.8
[217] 102.2 102.7 103.3 103.0 103.4 104.4 105.6 106.5 106.2 106.5 106.9 106.5
[229] 107.1 108.7 108.3 108.5 107.7 107.1 106.3 104.9 104.6 104.0 102.4 101.2
[241] 101.0 98.4 98.8 98.5 98.6 98.3 98.2 98.8 99.2 99.5 100.6 101.9
[253] 101.5 102.7 102.4 102.8 103.1
> module(finmetrics)
> nonlinearTest(x, method="STAR-LM", p=2, d=1:2)
Problem in solve.qr(a, b): apparently singular matrix
Use traceback() to see the call stack
> nonlinearTest(log(x), method="STAR-LM", p=2, d=1:2)
Problem in solve.qr(a, b): apparently singular matrix
Use traceback() to see the call stack
>
14# epoh