怎么会这样呢?郁闷啊!
各位大侠,不好意思还是前面的程序,修改了一点能运行了,但是--,又出了新的问题:Title "nihe- Regression";
Variable n, nn,x1, x2, x3, T;
Parameter a, b, c;
FunctionT=ln((100.3*((x1)^(a*(n-1)/2)*(x2)^(b*1/2)*(x3)^(-c*nn/2))-30.04)/70.26)/0.019;
Data;
13.72669982 1.444712888 1.08681672 0.979333633 2.588757396 27
13.70017762 12.17506964 1.69726248 0.900310187 1.660341556 173
9.726329646 3.761981778 1.312633833 0.917008365 2.854812398 78
11.40134794 0.8016792 1.058161351 0.982792935 3.102836879 15
14.15221931 1.968237867 1.114420063 0.974327476 2.461322082 34
10.00235872 1.424705946 1.117154812 0.962955906 3.277153558 25
9.776420007 1.779373958 1.149253731 0.953393942 3.246753247 23
11.94342348 3.552283557 1.241877256 0.943878215 2.543604651 83
11.73642021 4.003259601 1.276556777 0.936856715 2.510760402 97
13.14522116 6.186553169 1.378333333 0.929028419 2.116082225 160
8.244466812 6.121325412 1.587223587 0.854451759 2.708978328 85
11.71058768 4.137729411 1.286238532 0.935095734 2.496433666 93
10.0778636 4.609289376 1.367983368 0.910356856 2.659574468 122
10.0778636 4.877996779 1.388773389 0.907008465 2.619760479 118
12.20302714 3.862939797 1.257092199 0.942410856 2.468265162 86
12.20302714 4.327089279 1.287234043 0.937442044 2.41046832 105
计算结果如下:
迭代数: 16
计算用时(时:分:秒:微秒): 00:00:01:141
优化算法: 麦夸特法(Levenberg-Marquardt) + 通用全局优化法
计算结束原因: 达到收敛判断标准
均方差(RMSE): 0
残差平方和(SSE): 0
相关系数(R): 0
相关系数之平方(R^2): 0
决定系数(DC): 0
卡方系数(Chi-Square): 0
F统计(F-Statistic): 0
参数 最佳估算
---------- -------------
a 0.625302848638967
b 0.7965326779522
c 0.252074953867123
====== 结果输出 =====
No 实测值t 计算值t
1 0 0.0000000
2 0 0.0000000
3 0 0.0000000
4 0 0.0000000
5 0 0.0000000
6 0 0.0000000
7 0 0.0000000
8 0 0.0000000
9 0 0.0000000
10 0 0.0000000
11 0 0.0000000
12 0 0.0000000
13 0 0.0000000
14 0 0.0000000
15 0 0.0000000
16 0 0.0000000
怎么会这样呢,都是0,而且每计算一次a、b、c数值都会变化。
哪位老大帮帮忙啊,到底是什么问题呢? 我这没任何问题:
均方差(RMSE): 14.3370165447363
残差平方和(RSS): 3288.80069446467
相关系数(R): 0.968386627907554
相关系数之平方(R^2): 0.937772661110163
决定系数(DC): 0.905268292350587
卡方系数(Chi-Square): 28.7431522915288
F统计(F-Statistic): 68.6148298313747
参数 最佳估算
---------- -------------
a 0.266122923769361
b 42.0810124092918
c -1.40422392781076
====== 结果输出 =====
No 实测值t 计算值t
1 27 45.0199943029269
2 173 176.830816890934
3 78 80.592069206238
4 15 24.7052907744362
5 34 58.4937717930894
6 25 36.1547819591939
7 23 42.7169609771052
8 83 90.0057793572002
9 97 97.6421566575218
10 160 134.135303992194
11 85 89.4533529690115
12 93 99.9206999473962
13 122 97.8662968232899
14 118 101.986542583309
15 86 96.4976121775365
16 105 104.698795583963 看来这程序还真是挑生手欺负:@L
再次谢谢斑竹:handshake
页:
[1]