如何提取伽玛分布的拟合值?

时间:2015-10-14 02:53:11

标签: r

我想从R中的fitdist函数输出模型中提取拟合值。因此,我使用了fitted(model.object)函数,得到的输出为Null。代码如下:

OutEst
  [1,]  0.872143630
  [2,]  7.868779497
  [3,]  0.226875954
  [4,] 24.267572943
  [5,] 14.158973514
  [6,]  4.346251412
  [7,]  1.636542003
  [8,]  0.175979073
  [9,]  0.074331029
 [10,]  4.224522868
 [11,]  1.607480300
 [12,]  0.040918175
 [13,] 13.664916344
 [14,] 19.480406350
 [15,] 24.104609740
 [16,]  8.079880744
 [17,]  0.027317015
 [18,]  2.321946237
 [19,]  0.000000000
 [20,]  0.409755218
 [21,]  0.000000000
 [22,]  0.414827263
 [23,]  2.755841830
 [24,]  1.091825488
 [25,]  1.288534896
 [26,]  5.611259902
 [27,]  0.000000000
 [28,]  0.000000000
 [29,]  4.845565803
 [30,]  0.027317015
 [31,]  4.322232168
 [32,]  2.282156424
 [33,]  2.856332014
 [34,]  2.161989934
 [35,]  0.409755218
 [36,]  0.156282073
 [37,]  0.116098780
 [38,]  0.000000000
 [39,]  3.653546885
 [40,]  7.450890103
 [41,]  5.093254715
 [42,] 13.182175978
 [43,]  3.116889736
 [44,]  2.729517705
 [45,] 10.203076371
 [46,]  2.183626721
 [47,]  1.199209304
 [48,]  0.042188763
 [49,]  6.039777894
 [50,]  0.533895025

fitg1=fitdist(OutEst,"gamma");fitg1
fitted.fitg1=fitted(fitg1)
fitted.fitg1
NULL

真的很感激,如果有人可以帮助我

0 个答案:

没有答案