Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_fitdistrbeta.wasp
Title produced by softwareMaximum-likelihood Fitting - Beta Distribution
Date of computationTue, 30 Dec 2014 17:12:42 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/30/t1419959809kd5dl0f8vkh4l08.htm/, Retrieved Sun, 19 May 2024 15:21:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=271758, Retrieved Sun, 19 May 2024 15:21:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsBeta BT
Estimated Impact85
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Maximum-likelihood Fitting - Beta Distribution] [] [2014-12-30 17:12:42] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.01
0.11
0.05
0.04
0.10
0.04
0.05
0.06
0.02
0.01
0.03
0.06
0.07
0.08
0.04
0.03
0.05
0.06
0.12
0.09
0.10
0.02
0.01
0.01
0.05
0.06
0.03
0.03
0.03
0.04
0.05
0.06
0.01
0.01
0.02
0.05
0.06
0.04
0.01
0.02
0.05
0.05
0.06
0.04
0.03
0.02
0.03
0.04
0.05
0.07
0.09
0.12
0.06
0.08
0.07
0.04
0.03
0.04
0.06
0.08




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.wessa.net

\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 & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=271758&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=271758&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=271758&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 time2 seconds
R Server'George Udny Yule' @ yule.wessa.net







ParameterEstimated ValueStandard Deviation
shape12.636397908043340.454223779888682
shape251.20514183220949.66574960429665

\begin{tabular}{lllllllll}
\hline
Parameter & Estimated Value & Standard Deviation \tabularnewline
shape1 & 2.63639790804334 & 0.454223779888682 \tabularnewline
shape2 & 51.2051418322094 & 9.66574960429665 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=271758&T=1

[TABLE]
[ROW][C]Parameter[/C][C]Estimated Value[/C][C]Standard Deviation[/C][/ROW]
[ROW][C]shape1[/C][C]2.63639790804334[/C][C]0.454223779888682[/C][/ROW]
[ROW][C]shape2[/C][C]51.2051418322094[/C][C]9.66574960429665[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=271758&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=271758&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
shape12.636397908043340.454223779888682
shape251.20514183220949.66574960429665



Parameters (Session):
par1 = 0.1 ; par2 = 0.5 ; par3 = 0.1 ; par4 = 10 ;
Parameters (R input):
par1 = 0.1 ; par2 = 0.5 ; par3 = 0.1 ; par4 = 10 ;
R code (references can be found in the software module):
par4 <- '10'
par3 <- '0.1'
par2 <- '1'
par1 <- '0.1'
library(MASS)
PPCCBeta <- function(shape1, shape2, x)
{
x <- sort(x)
pp <- ppoints(x)
cor(qbeta(pp, shape1=shape1, shape2=shape2), x)
}
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
if (par1 < 0.1) par1 <- 0.1
if (par1 > 10) par1 <- 10
if (par2 < 0.1) par2 <- 0.1
if (par2 > 10) par2 <- 10
if (par3 < 0.1) par3 <- 0.1
if (par3 > 10) par3 <- 10
if (par4 < 0.1) par4 <- 0.1
if (par4 > 10) par4 <- 10
par1h <- par1*10
par2h <- par2*10
par3h <- par3*10
par4h <- par4*10
sortx <- sort(x)
c <- array(NA,dim=c(par2h,par4h))
for (i in par1h:par2h)
{
for (j in par3h:par4h)
{
c[i,j] <- cor(qbeta(ppoints(x), shape1=i/10,shape2=j/10),sortx)
}
}
bitmap(file='test1.png')
filled.contour((par1h:par2h)/10,(par3h:par4h)/10,c[par1h:par2h,par3h:par4h],xlab='shape1',ylab='shape2',main='PPCC Contour Plot - Beta')
dev.off()
xbar <- mean(x)
xvar <- var(x)
(a <- (xbar*(1-xbar)/xvar - 1)*xbar)
(b <- (1-xbar)*a/xbar)
(f<-fitdistr(x, 'beta',list(shape1=a,shape2=b)))
xlab <- paste('Beta(shape1=',round(f$estimate[[1]],2))
xlab <- paste(xlab,', shape2=')
xlab <- paste(xlab,round(f$estimate[[2]],2))
xlab <- paste(xlab,')')
bitmap(file='test2.png')
myser <- qbeta(ppoints(x), shape1=f$estimate[[1]], shape2=f$estimate[[2]])
qqplot(myser, x, main='QQ plot (Beta)', 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,'shape1',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,'shape2',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')