Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_fitdistrnorm.wasp
Title produced by softwareML Fitting and QQ Plot- Normal Distribution
Date of computationWed, 24 Jan 2018 12:01:49 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2018/Jan/24/t1516791713mi13s4ma0dlsdow.htm/, Retrieved Sun, 05 May 2024 23:41:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=312854, Retrieved Sun, 05 May 2024 23:41:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact48
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ML Fitting and QQ Plot- Normal Distribution] [] [2018-01-24 11:01:49] [5afcb1189196649f11ed89361ecc5748] [Current]
Feedback Forum

Post a new message
Dataseries X:
10
15
14
14
8
19
17
18
10
15
16
12
13
10
14
15
20
9
12
13
16
12
14
15
19
16
16
14
14
14
13
18
15
15
15
13
14
15
14
19
16
16
12
10
11
13
14
11
11
16
9
16
19
13
15
14
15
11
14
15
17
16
13
15
14
15
14
12
12
15
17
13
5
7
10
15
9
9
15
14
11
18
20
20
16
15
14
13
18
14
12
9
19
13
12
14
6
14
11
11
14
12
19
13
14
17
12
16
15
15
15
16
15
12
13
14
17
14
14
14
15
11
11
16
12
12
19
18
16
16
13
11
10
14
14
14
16
10
16
7
16
15
17
11
11
10
13
14
13
13
12
10
15
6
15
15
11
14
14
16
12
15
20
12
9
13
15
19
11
11
17
15
14
15
11
12
15
16
16




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R ServerBig Analytics Cloud Computing Center
R Engine error message
Error in hist.default(x, col = par1, breaks = par2, main = main, ylab = ylab,  : 
  invalid number of 'breaks'
Calls: hist -> hist.default
Execution halted

\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 time4 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
R Engine error message & 
Error in hist.default(x, col = par1, breaks = par2, main = main, ylab = ylab,  : 
  invalid number of 'breaks'
Calls: hist -> hist.default
Execution halted
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=312854&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]4 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [ROW]R Engine error message[/C][C]
Error in hist.default(x, col = par1, breaks = par2, main = main, ylab = ylab,  : 
  invalid number of 'breaks'
Calls: hist -> hist.default
Execution halted
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=312854&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=312854&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 time4 seconds
R ServerBig Analytics Cloud Computing Center
R Engine error message
Error in hist.default(x, col = par1, breaks = par2, main = main, ylab = ylab,  : 
  invalid number of 'breaks'
Calls: hist -> hist.default
Execution halted



Parameters (Session):
par1 = 0 ; par2 = 0.3 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 2 ; par8 = 2 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 0 ; par2 = 0.3 ;
R code (references can be found in the software module):
library(MASS)
library(car)
par1 <- as.numeric(par1)
if (par2 == '0') par2 = 'Sturges' else par2 <- as.numeric(par2)
x <- as.ts(x) #otherwise the fitdistr function does not work properly
r <- fitdistr(x,'normal')
print(r)
bitmap(file='test1.png')
myhist<-hist(x,col=par1,breaks=par2,main=main,ylab=ylab,xlab=xlab,freq=F)
curve(1/(r$estimate[2]*sqrt(2*pi))*exp(-1/2*((x-r$estimate[1])/r$estimate[2])^2),min(x),max(x),add=T)
dev.off()
bitmap(file='test3.png')
qqPlot(x,dist='norm',main='QQ plot (Normal) with confidence intervals')
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,'mean',header=TRUE)
a<-table.element(a,r$estimate[1])
a<-table.element(a,r$sd[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'standard deviation',header=TRUE)
a<-table.element(a,r$estimate[2])
a<-table.element(a,r$sd[2])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')