Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_fitdistrgamma.wasp
Title produced by softwareMaximum-likelihood Fitting - Gamma Distribution
Date of computationThu, 23 Oct 2008 08:57:54 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Oct/23/t1224773914w9q2ak3dw80ah48.htm/, Retrieved Sun, 19 May 2024 13:55:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=18536, Retrieved Sun, 19 May 2024 13:55:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact186
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Univariate Explorative Data Analysis] [Investigating Dis...] [2007-10-21 18:26:46] [b9964c45117f7aac638ab9056d451faa]
- RMPD  [Maximum-likelihood Fitting - Weibull Distribution] [QQ Weibull] [2008-10-23 14:54:45] [46c5a5fbda57fdfa1d4ef48658f82a0c]
- RM        [Maximum-likelihood Fitting - Gamma Distribution] [QQ Gamma] [2008-10-23 14:57:54] [b23db733701c4d62df5e228d507c1c6a] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.989130435
0.919087137
0.925417076
0.925612053
1.066666667
0.851108765
1.030693069
0.989031079
0.913000978
0.792723264
0.978170478
0.987513007
0.909433962
0.883608147
0.82745098
0.8252149
1.023255814
0.815418024
1.026192703
0.914742451
0.807276303
0.739130435
0.98973306
0.972164948
0.853889943
0.856864654
0.775739042
0.789473684
0.931350114
0.73971079
0.885245902
0.842435094
0.818458418
0.72755418
0.923238696
0.922680412
0.883762201
0.818270165
0.771047228
0.825852783
0.924485126
0.755165289
0.874671341
0.815956482
0.799807507
0.712598425
0.832980973
0.910323253
0.869149952
0.779182879
0.750254842
0.75856014
0.920889988
0.743991641
0.816254417
0.769593957
0.784007353
0.683284457
0.850505051
0.900695134
0.868398268




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=18536&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=18536&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=18536&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







ParameterEstimated ValueStandard Deviation
shape95.01848760926417.1749713992914
rate110.21520719186719.9743692491002

\begin{tabular}{lllllllll}
\hline
Parameter & Estimated Value & Standard Deviation \tabularnewline
shape & 95.018487609264 & 17.1749713992914 \tabularnewline
rate & 110.215207191867 & 19.9743692491002 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=18536&T=1

[TABLE]
[ROW][C]Parameter[/C][C]Estimated Value[/C][C]Standard Deviation[/C][/ROW]
[ROW][C]shape[/C][C]95.018487609264[/C][C]17.1749713992914[/C][/ROW]
[ROW][C]rate[/C][C]110.215207191867[/C][C]19.9743692491002[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=18536&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=18536&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
shape95.01848760926417.1749713992914
rate110.21520719186719.9743692491002



Parameters (Session):
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')