Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_fitdistrgamma.wasp
Title produced by softwareMaximum-likelihood Fitting - Gamma Distribution
Date of computationSun, 14 May 2023 16:42:49 +0200
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2023/May/14/t168407544328xvn931wpvakik.htm/, Retrieved Thu, 10 Sep 2026 15:21:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=319899, Retrieved Thu, 10 Sep 2026 15:21:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact371
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Maximum-likelihood Fitting - Gamma Distribution] [] [2023-05-14 14:42:49] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
1
1
2
2
2
3
4
4
9
10
11
12
13
14
15
15
15
15
16
17
17
19
22
22
24
26
27
31
31
32
35
35
43
45
46
50
56
57
62
65
65
66
71
72
75
77
80
81
82
84
85
88
90
93
95
96
102
102
103
110
110
111
111
113
116
117
118
119
121
123
124
126
132
132
134
135
137
139
139
140
140
140
142
152
154
155
156
156
157
158
159
162
163
164
165
166
166
168
171
172
172
173
178
179
181
187
188
192
194
194
195
198
200
200
202
204
206
206
212
217
218
219
221
222
223
223
231
234
235
237
238
240
245
248
251
253
255
257
260
261
262
263
268
268
269
276
276
276
281
282
282
282
283
283
284
284
288
289
289
289
291
295
295
296
299
299
300
302
302
306
307
308
308
312
313
313
318
319
322
323
324
324
333
334
340
342
343
344
347
350
353
356
358
360
362
364
365
374
376
383
386
388
389
392
393
394
398
401
401
403
405
407
408
417
417
417
418
419
419
419
422
423
423
424
425
426
433
433
434
435
436
437
441
442
444
444
444
445
454
454
459
460
461
463
466
473
476
477
479
486
488
491
491
492
494
494
498
500
501
502
504
505
506
506
511
512
514
515
516
516
516
520
522
525
525
536
537
538
540
541
542
545
545
546
548
549
550
550
551
557
558
558
562
566
567
568
569
571
576
576
577
579
586
590
593
596
601
601
602
602
603
605
608
609
609
614
614
621
630
630
632
634
637
638
642
647
647
649
650
652
653
653
655
655
656
657
657
658
658
661
666
668
668
670
670
675
675
676
682
690
691
698
698
700
705
706
708
713
723
723
729
730
731
732
733
734
743
744
747
748
748
748
750
754
759
761
762
767
773
775
779
781
782
783
784
786
793
795
796
801
801
804
805
805
805
811
813
823
827
828
833
842
849
849
863
883
883
884
885
887
890
891
892
893
895
897
898
910
911
915
920
932
936
937
942
946
946
953
957
958
960
962
968
971
978
979
986
988
988
996
997
1.000
1.006
1.013
1.013
1.014
1.018
1.019
1.020
1.023
1.023
1.026
1.028
1.028
1.030
1.030
1.032
1.033
1.034
1.041
1.044
1.046
1.052
1.065
1.073
1.092
1.094
1.099
1.101
1.102
1.106
1.108
1.108
1.111
1.122
1.124
1.139
1.139
1.140
1.143
1.154
1.160
1.167
1.175
1.181
1.188
1.200
1.213
1.216
1.223
1.223
1.224
1.226
1.232
1.237
1.237
1.244
1.246
1.247
1.249
1.250
1.258
1.258
1.271
1.289
1.294
1.296
1.296
1.308
1.310
1.312
1.316
1.323
1.323
1.324
1.328
1.330
1.333
1.336
1.345
1.353
1.359
1.384
1.388
1.390
1.399
1.400
1.407
1.410
1.422
1.427
1.429
1.431
1.434
1.436
1.451
1.463
1.476
1.477
1.487
1.502
1.505
1.510
1.524
1.525
1.527
1.529
1.537
1.552
1.553
1.566
1.570
1.577
1.577
1.579
1.594
1.595
1.602
1.605
1.611
1.617
1.621
1.623
1.632
1.636
1.653
1.659
1.668
1.669
1.699
1.725
1.728
1.729
1.734
1.736
1.757
1.758
1.772
1.776
1.786
1.787
1.848
1.850
1.852
1.866
1.873
1.888
1.894
1.914
1.936
1.946
1.949
1.951
1.960
1.961
1.991
2.021
2.027
2.028
2.035
2.091
2.115
2.126
2.133
2.135
2.143
2.148
2.169
2.184
2.210
2.240
2.254
2.263
2.267
2.267
2.297
2.322
2.322
2.330
2.342
2.356
2.365
2.366
2.366
2.376
2.386
2.397
2.412
2.416
2.419
2.423
2.431
2.434
2.436
2.440
2.442
2.461
2.480
2.486
2.495
2.542
2.592
2.605
2.615
2.698
2.728
2.734
2.736
2.737
2.779
2.781
2.784
2.823
2.824
2.826
2.831
2.863
2.866
2.867
2.879
2.882
2.962
2.966
2.972
2.977
2.982
2.986
3.025
3.042
3.081
3.124
3.138
3.149
3.285
3.303
3.330
3.341
3.367
3.381
3.404
3.407
3.414
3.418
3.439
3.494
3.523
3.552
3.558
3.572
3.579
3.597
3.638
3.712
3.721
3.746
3.759
3.772
3.782
3.795
3.806
3.835
3.844
3.855
3.856
3.861
3.861
3.889
3.907
3.924
3.934
3.953
3.973
3.989
4.023
4.093
4.093
4.182
4.334
4.403
4.462
4.474
4.585
4.591
4.651
4.684
4.743
4.807
4.814
5.069
5.159
5.205
5.376
5.438
5.550
5.732
5.901
5.990
6.399
6.914
7.316
7.541
7.608
7.992
9.169
10.372




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=319899&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=319899&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319899&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







ParameterEstimated ValueStandard Deviation
shape0.3552096045425070.0135730095669001
rate0.001377342142763786.46989870814789e-05

\begin{tabular}{lllllllll}
\hline
Parameter & Estimated Value & Standard Deviation \tabularnewline
shape & 0.355209604542507 & 0.0135730095669001 \tabularnewline
rate & 0.00137734214276378 & 6.46989870814789e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=319899&T=1

[TABLE]
[ROW][C]Parameter[/C][C]Estimated Value[/C][C]Standard Deviation[/C][/ROW]
[ROW][C]shape[/C][C]0.355209604542507[/C][C]0.0135730095669001[/C][/ROW]
[ROW][C]rate[/C][C]0.00137734214276378[/C][C]6.46989870814789e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=319899&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319899&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

ParameterEstimated ValueStandard Deviation
shape0.3552096045425070.0135730095669001
rate0.001377342142763786.46989870814789e-05



Parameters (Session):
par1 = 1 ; par2 = 8 ;
Parameters (R input):
par1 = 1 ; par2 = 8 ;
R code (references can be found in the software module):
library(MASS)
PPCCGamma <- function(shape, rate, x)
{
x <- sort(x)
pp <- ppoints(x)
cor(qgamma(pp, shape=shape, rate=rate), x)
}
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
if (par1 < 0.1) par1 <- 0.1
if (par1 > 50) par1 <- 50
if (par2 < 0.1) par2 <- 0.1
if (par2 > 50) par2 <- 50
par1h <- par1*10
par2h <- par2*10
sortx <- sort(x)
c <- array(NA,dim=c(par2h))
for (i in par1h:par2h)
{
c[i] <- cor(qgamma(ppoints(x), shape=i/10,rate=2),sortx)
}
bitmap(file='test1.png')
plot((par1h:par2h)/10,c[par1h:par2h],xlab='shape',ylab='correlation',main='PPCC Plot - Gamma')
dev.off()
f<-fitdistr(x, 'gamma')
f$estimate
f$sd
xlab <- paste('Gamma(shape=',round(f$estimate[[1]],2))
xlab <- paste(xlab,', rate=')
xlab <- paste(xlab,round(f$estimate[[2]],2))
xlab <- paste(xlab,')')
bitmap(file='test2.png')
qqplot(qgamma(ppoints(x), shape=f$estimate[[1]], rate=f$estimate[[2]]), x, main='QQ plot (Gamma)', xlab=xlab )
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Parameter',1,TRUE)
a<-table.element(a,'Estimated Value',1,TRUE)
a<-table.element(a,'Standard Deviation',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'shape',header=TRUE)
a<-table.element(a,f$estimate[1])
a<-table.element(a,f$sd[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'rate',header=TRUE)
a<-table.element(a,f$estimate[2])
a<-table.element(a,f$sd[2])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')