Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_fitdistrlnorm.wasp
Title produced by softwareMaximum-likelihood Fitting - Lognormal Distribution
Date of computationWed, 28 Apr 2010 18:06:28 +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/2010/Apr/28/t1272488410zqfiqhuprl30aac.htm/, Retrieved Thu, 28 Mar 2024 16:31:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75024, Retrieved Thu, 28 Mar 2024 16:31:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact137
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Maximum-likelihood Fitting - Lognormal Distribution] [lognormal fit for...] [2010-04-28 18:06:28] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
3
4
4
4
4
4
4
4
4
4
4
5
5
5
5
5
5
5
5
5
5
5
5
5
6
6
6
6
6
6
6
6
6
6
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
8
8
8
8
8
8
8
8
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
11
11
11
11
11
11
11
11
11
12
12
12
12
12
12
12
12
12
13
13
13
13
13
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
15
15
15
15
15
15
15
15
15
15
15
15
16
16
16
16
17
17
17
18
18
18
18
18
18
18
18
19
19
19
19
20
20
20
20
20
20
20
20
21
21
21
22
22
22
22
22
22
22
23
23
23
24
24
24
25
25
26
26
30
30
30
30
31
31
32
32
33
34
34
34
34
36




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75024&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75024&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75024&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







ParameterEstimated ValueStandard Deviation
meanlog2.437132046723880.0373072660468793
sdlog0.5483025930786840.026380220809279

\begin{tabular}{lllllllll}
\hline
Parameter & Estimated Value & Standard Deviation \tabularnewline
meanlog & 2.43713204672388 & 0.0373072660468793 \tabularnewline
sdlog & 0.548302593078684 & 0.026380220809279 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75024&T=1

[TABLE]
[ROW][C]Parameter[/C][C]Estimated Value[/C][C]Standard Deviation[/C][/ROW]
[ROW][C]meanlog[/C][C]2.43713204672388[/C][C]0.0373072660468793[/C][/ROW]
[ROW][C]sdlog[/C][C]0.548302593078684[/C][C]0.026380220809279[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75024&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75024&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
meanlog2.437132046723880.0373072660468793
sdlog0.5483025930786840.026380220809279



Parameters (Session):
par1 = 0.1 ; par2 = 1.5 ;
Parameters (R input):
par1 = 0.1 ; par2 = 1.5 ;
R code (references can be found in the software module):
library(MASS)
PPCC <- function(meanlog, sdlog, x)
{
x <- sort(x)
pp <- ppoints(x)
cor(qlnorm(pp, meanlog=meanlog, sdlog=sdlog), 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(qlnorm(ppoints(x), meanlog=0,sdlog=i/10),sortx)
}
bitmap(file='test1.png')
plot((par1h:par2h)/10,c[par1h:par2h],xlab='sdlog',ylab='correlation',main='PPCC Plot - Lognormal')
dev.off()
(f<-fitdistr(x, 'lognormal'))
xlab <- paste('Lognormal(meanlog=',round(f$estimate[[1]],2))
xlab <- paste(xlab,', sdlog=')
xlab <- paste(xlab,round(f$estimate[[2]],2))
xlab <- paste(xlab,')')
bitmap(file='test2.png')
qqplot(qlnorm(ppoints(x), meanlog=f$estimate[[1]], sdlog=f$estimate[[2]]), x, main='QQ plot (Lognormal)', 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,'meanlog',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,'sdlog',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')