Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_bootstrapplot1.wasp
Title produced by softwareBootstrap Plot - Central Tendency
Date of computationThu, 14 Dec 2017 12:17:23 +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/2017/Dec/14/t1513250345n0xon3wb2b5vxct.htm/, Retrieved Tue, 14 May 2024 01:45:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=309464, Retrieved Tue, 14 May 2024 01:45:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact57
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bootstrap Plot - Central Tendency] [BPCT System Quality] [2017-12-14 11:17:23] [97cb41d201d00a446ae5b9683850817f] [Current]
Feedback Forum

Post a new message
Dataseries X:
22
39
40
34
38
39
39
38
31
34
32
37
36
38
29
33
35
34
45
30
33
30
40
34
31
27
33
42
36
33
42
33
21
43
34
32
34
28
30
27
29
40
29
41
33
42
39
35
33
33
44
34
30
30
35
39
34
39
25
39
33
34
36
34
31
35
34
36
40
31
33
28
42
38
35
34
28
35
25
39
25
32
35
41
34
33
32
34
25
38
37
38
36
39
31
40
34
33
32
33
32
28
32
34
36
38
31
36
27
31
28
30
29
29
31
35
42
28
38
34
28
30
26
27
31
35
33
34
30
28
30
29
32
34
34
35
40
34
28
35
31
33
36
30
27
30
25
39
36
31
33
30
31
32
33
43
35
36
42
31
26
38
27
27
31
32
36
36
25
33
32
40
36
36
35
31
31
36
36
37
31
31
26
35
32
36
37
34
33
35
31
38
36
32
28
33
31
34
33
36
36
29
31
35
31
35
36
35
38
28
28
28
34
31
44
36
36
34
32
36
38
28
37
32
36
30
38
37
33
43
26
33
34
36
36
36
36
39
33
35
25
26
35
16
40
14
22
21
38
38
27
40
40
19
29
37
27
26
24
29
26
27
35
39
38
36
37
36
32
33
39
34
39
36
33
30
39
37
37
35
32
36
36
41
36
37
29
39
37
32
36
43
30
33
28
30
28
39
34
34
29
32
33
27
35
38
40
34
34
26
39
34
39
26
30
34
34
29
41
43
31
33
34
30
23
29
35
40
27
30
27
29
33
32
33
36
34
45
30
22
24
25
26
27
27
35
36
32
35
35
36
37
33
25
35
37
36
35
29
35
31
30
37
36
35
32
34
37
36
39
37
31
40
38
35
38
32
41
28
40
25
28
37
37
40
26
30
32
31
28
34
39
33
43
37
31
31
34
32
27
34
28
32
39
28
39
32
36
31
39
23
25
32
32
36
39
31
32
28
34
28
38
35
32
26
32
28
31
33
38
38
36
31
36
43
37
28
35
34
40
31
41
35
38
37
31




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time12 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 time12 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309464&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]12 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=309464&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309464&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 time12 seconds
R ServerBig Analytics Cloud Computing Center







Estimation Results of Bootstrap
statisticP0.5P2.5Q1EstimateQ3P97.5P99.5S.D.IQR
mean32.79332.96833.22833.37433.53233.82133.9470.227590.30437
median333334343434340.390080
midrange28.52929.529.530.532.513331.01071
mode313134363636361.35392
mode k.dens31.78832.41434.00234.46934.92335.62135.8830.793780.92125

\begin{tabular}{lllllllll}
\hline
Estimation Results of Bootstrap \tabularnewline
statistic & P0.5 & P2.5 & Q1 & Estimate & Q3 & P97.5 & P99.5 & S.D. & IQR \tabularnewline
mean & 32.793 & 32.968 & 33.228 & 33.374 & 33.532 & 33.821 & 33.947 & 0.22759 & 0.30437 \tabularnewline
median & 33 & 33 & 34 & 34 & 34 & 34 & 34 & 0.39008 & 0 \tabularnewline
midrange & 28.5 & 29 & 29.5 & 29.5 & 30.5 & 32.513 & 33 & 1.0107 & 1 \tabularnewline
mode & 31 & 31 & 34 & 36 & 36 & 36 & 36 & 1.3539 & 2 \tabularnewline
mode k.dens & 31.788 & 32.414 & 34.002 & 34.469 & 34.923 & 35.621 & 35.883 & 0.79378 & 0.92125 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309464&T=1

[TABLE]
[ROW][C]Estimation Results of Bootstrap[/C][/ROW]
[ROW][C]statistic[/C][C]P0.5[/C][C]P2.5[/C][C]Q1[/C][C]Estimate[/C][C]Q3[/C][C]P97.5[/C][C]P99.5[/C][C]S.D.[/C][C]IQR[/C][/ROW]
[ROW][C]mean[/C][C]32.793[/C][C]32.968[/C][C]33.228[/C][C]33.374[/C][C]33.532[/C][C]33.821[/C][C]33.947[/C][C]0.22759[/C][C]0.30437[/C][/ROW]
[ROW][C]median[/C][C]33[/C][C]33[/C][C]34[/C][C]34[/C][C]34[/C][C]34[/C][C]34[/C][C]0.39008[/C][C]0[/C][/ROW]
[ROW][C]midrange[/C][C]28.5[/C][C]29[/C][C]29.5[/C][C]29.5[/C][C]30.5[/C][C]32.513[/C][C]33[/C][C]1.0107[/C][C]1[/C][/ROW]
[ROW][C]mode[/C][C]31[/C][C]31[/C][C]34[/C][C]36[/C][C]36[/C][C]36[/C][C]36[/C][C]1.3539[/C][C]2[/C][/ROW]
[ROW][C]mode k.dens[/C][C]31.788[/C][C]32.414[/C][C]34.002[/C][C]34.469[/C][C]34.923[/C][C]35.621[/C][C]35.883[/C][C]0.79378[/C][C]0.92125[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=309464&T=1

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

As an alternative you can also use a QR Code:  

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

Estimation Results of Bootstrap
statisticP0.5P2.5Q1EstimateQ3P97.5P99.5S.D.IQR
mean32.79332.96833.22833.37433.53233.82133.9470.227590.30437
median333334343434340.390080
midrange28.52929.529.530.532.513331.01071
mode313134363636361.35392
mode k.dens31.78832.41434.00234.46934.92335.62135.8830.793780.92125



Parameters (Session):
par1 = 200 ; par2 = 5 ; par3 = 0 ; par4 = P0.5 P2.5 Q1 Q3 P97.5 P99.5 ;
Parameters (R input):
par1 = 200 ; par2 = 5 ; par3 = 0 ; par4 = P0.5 P2.5 Q1 Q3 P97.5 P99.5 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
if (par3 == '0') bw <- NULL
if (par3 != '0') bw <- as.numeric(par3)
if (par1 < 10) par1 = 10
if (par1 > 5000) par1 = 5000
library(modeest)
library(lattice)
library(boot)
boot.stat <- function(s,i)
{
s.mean <- mean(s[i])
s.median <- median(s[i])
s.midrange <- (max(s[i]) + min(s[i])) / 2
s.mode <- mlv(s[i], method='mfv')$M
s.kernelmode <- mlv(s[i], method='kernel', bw=bw)$M
c(s.mean, s.median, s.midrange, s.mode, s.kernelmode)
}
x<-na.omit(x)
(r <- boot(x,boot.stat, R=par1, stype='i'))
bitmap(file='plot1.png')
plot(r$t[,1],type='p',ylab='simulated values',main='Simulation of Mean')
grid()
dev.off()
bitmap(file='plot2.png')
plot(r$t[,2],type='p',ylab='simulated values',main='Simulation of Median')
grid()
dev.off()
bitmap(file='plot3.png')
plot(r$t[,3],type='p',ylab='simulated values',main='Simulation of Midrange')
grid()
dev.off()
bitmap(file='plot7.png')
plot(r$t[,4],type='p',ylab='simulated values',main='Simulation of Mode')
grid()
dev.off()
bitmap(file='plot8.png')
plot(r$t[,5],type='p',ylab='simulated values',main='Simulation of Mode of Kernel Density')
grid()
dev.off()
bitmap(file='plot4.png')
densityplot(~r$t[,1],col='black',main='Density Plot',xlab='mean')
dev.off()
bitmap(file='plot5.png')
densityplot(~r$t[,2],col='black',main='Density Plot',xlab='median')
dev.off()
bitmap(file='plot6.png')
densityplot(~r$t[,3],col='black',main='Density Plot',xlab='midrange')
dev.off()
bitmap(file='plot9.png')
densityplot(~r$t[,4],col='black',main='Density Plot',xlab='mode')
dev.off()
bitmap(file='plot10.png')
densityplot(~r$t[,5],col='black',main='Density Plot',xlab='mode of kernel dens.')
dev.off()
z <- data.frame(cbind(r$t[,1],r$t[,2],r$t[,3],r$t[,4],r$t[,5]))
colnames(z) <- list('mean','median','midrange','mode','mode k.dens')
bitmap(file='plot11.png')
boxplot(z,notch=TRUE,ylab='simulated values',main='Bootstrap Simulation - Central Tendency')
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimation Results of Bootstrap',10,TRUE)
a<-table.row.end(a)
if (par4 == 'P1 P5 Q1 Q3 P95 P99') {
myq.1 <- 0.01
myq.2 <- 0.05
myq.3 <- 0.95
myq.4 <- 0.99
myl.1 <- 'P1'
myl.2 <- 'P5'
myl.3 <- 'P95'
myl.4 <- 'P99'
}
if (par4 == 'P0.5 P2.5 Q1 Q3 P97.5 P99.5') {
myq.1 <- 0.005
myq.2 <- 0.025
myq.3 <- 0.975
myq.4 <- 0.995
myl.1 <- 'P0.5'
myl.2 <- 'P2.5'
myl.3 <- 'P97.5'
myl.4 <- 'P99.5'
}
if (par4 == 'P10 P20 Q1 Q3 P80 P90') {
myq.1 <- 0.10
myq.2 <- 0.20
myq.3 <- 0.80
myq.4 <- 0.90
myl.1 <- 'P10'
myl.2 <- 'P20'
myl.3 <- 'P80'
myl.4 <- 'P90'
}
a<-table.row.start(a)
a<-table.element(a,'statistic',header=TRUE)
a<-table.element(a,myl.1,header=TRUE)
a<-table.element(a,myl.2,header=TRUE)
a<-table.element(a,'Q1',header=TRUE)
a<-table.element(a,'Estimate',header=TRUE)
a<-table.element(a,'Q3',header=TRUE)
a<-table.element(a,myl.3,header=TRUE)
a<-table.element(a,myl.4,header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'IQR',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
q1 <- quantile(r$t[,1],0.25)[[1]]
q3 <- quantile(r$t[,1],0.75)[[1]]
p01 <- quantile(r$t[,1],myq.1)[[1]]
p05 <- quantile(r$t[,1],myq.2)[[1]]
p95 <- quantile(r$t[,1],myq.3)[[1]]
p99 <- quantile(r$t[,1],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[1],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element( a,signif( sqrt(var(r$t[,1])),par2 ) )
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'median',header=TRUE)
q1 <- quantile(r$t[,2],0.25)[[1]]
q3 <- quantile(r$t[,2],0.75)[[1]]
p01 <- quantile(r$t[,2],myq.1)[[1]]
p05 <- quantile(r$t[,2],myq.2)[[1]]
p95 <- quantile(r$t[,2],myq.3)[[1]]
p99 <- quantile(r$t[,2],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[2],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,2])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'midrange',header=TRUE)
q1 <- quantile(r$t[,3],0.25)[[1]]
q3 <- quantile(r$t[,3],0.75)[[1]]
p01 <- quantile(r$t[,3],myq.1)[[1]]
p05 <- quantile(r$t[,3],myq.2)[[1]]
p95 <- quantile(r$t[,3],myq.3)[[1]]
p99 <- quantile(r$t[,3],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[3],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,3])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mode',header=TRUE)
q1 <- quantile(r$t[,4],0.25)[[1]]
q3 <- quantile(r$t[,4],0.75)[[1]]
p01 <- quantile(r$t[,4],myq.1)[[1]]
p05 <- quantile(r$t[,4],myq.2)[[1]]
p95 <- quantile(r$t[,4],myq.3)[[1]]
p99 <- quantile(r$t[,4],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[4],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,4])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mode k.dens',header=TRUE)
q1 <- quantile(r$t[,5],0.25)[[1]]
q3 <- quantile(r$t[,5],0.75)[[1]]
p01 <- quantile(r$t[,5],myq.1)[[1]]
p05 <- quantile(r$t[,5],myq.2)[[1]]
p95 <- quantile(r$t[,5],myq.3)[[1]]
p99 <- quantile(r$t[,5],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[5],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,5])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')