Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Module--
Title produced by softwareBlocked Bootstrap Plot - Central Tendency
Date of computationWed, 20 Jan 2016 19:38:13 +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/2016/Jan/20/t1453318717pma22jz5gihgdcx.htm/, Retrieved Wed, 08 May 2024 03:07:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=289790, Retrieved Wed, 08 May 2024 03:07:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Survey Scores] [] [2015-09-26 10:29:29] [32b17a345b130fdf5cc88718ed94a974]
- RMPD  [Blocked Bootstrap Plot - Central Tendency] [] [2015-10-12 13:11:41] [32b17a345b130fdf5cc88718ed94a974]
- RMP       [Blocked Bootstrap Plot - Central Tendency] [KDP] [2016-01-20 19:38:13] [60a1224d804ba7b0ae6afc9a73eaedc6] [Current]
Feedback Forum

Post a new message
Dataseries X:
29.90
28.77
15.64
23.73
25.65
21.81
28.97
24.29
25.33
28.84
19.99
19.75
22.70
23.28
24.15
20.38
27.75
27.31
25.61
22.64
26.05
28.07
21.02
25.00
17.93
35.45
17.70
28.53
26.55
26.51
30.78
26.83
27.49
25.89
20.44
19.79
18.14
27.98
35.90
34.38
21.58
21.53
31.14
28.25
25.16
20.51
30.05
20.17
32.37
22.46
25.40
19.82
18.14
20.10
20.25
19.73
24.74
26.17
20.14
31.71
26.66
20.75
20.01
26.67
23.91
26.81
29.31
31.76
22.99
23.94
27.04
20.28
23.32




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 7 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289790&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289790&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=289790&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 time7 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Estimation Results of Blocked Bootstrap
statisticP0.5P2.5Q1EstimateQ3P97.5P99.5S.D.IQR
mean23.33123.98624.4624.79225.08325.65625.9630.458650.62318
median21.8123.29924.292525.3326.5126.550.797581.04
midrange23.68724.00525.54525.7726.79627.0227.020.769621.2512
mode17.718.1422.40418.1425.49630.66435.453.30523.0926
mode k.dens20.04520.10220.32520.65926.4427.02327.3442.84616.1153

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & P0.5 & P2.5 & Q1 & Estimate & Q3 & P97.5 & P99.5 & S.D. & IQR \tabularnewline
mean & 23.331 & 23.986 & 24.46 & 24.792 & 25.083 & 25.656 & 25.963 & 0.45865 & 0.62318 \tabularnewline
median & 21.81 & 23.299 & 24.29 & 25 & 25.33 & 26.51 & 26.55 & 0.79758 & 1.04 \tabularnewline
midrange & 23.687 & 24.005 & 25.545 & 25.77 & 26.796 & 27.02 & 27.02 & 0.76962 & 1.2512 \tabularnewline
mode & 17.7 & 18.14 & 22.404 & 18.14 & 25.496 & 30.664 & 35.45 & 3.3052 & 3.0926 \tabularnewline
mode k.dens & 20.045 & 20.102 & 20.325 & 20.659 & 26.44 & 27.023 & 27.344 & 2.8461 & 6.1153 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289790&T=1

[TABLE]
[ROW][C]Estimation Results of Blocked 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]23.331[/C][C]23.986[/C][C]24.46[/C][C]24.792[/C][C]25.083[/C][C]25.656[/C][C]25.963[/C][C]0.45865[/C][C]0.62318[/C][/ROW]
[ROW][C]median[/C][C]21.81[/C][C]23.299[/C][C]24.29[/C][C]25[/C][C]25.33[/C][C]26.51[/C][C]26.55[/C][C]0.79758[/C][C]1.04[/C][/ROW]
[ROW][C]midrange[/C][C]23.687[/C][C]24.005[/C][C]25.545[/C][C]25.77[/C][C]26.796[/C][C]27.02[/C][C]27.02[/C][C]0.76962[/C][C]1.2512[/C][/ROW]
[ROW][C]mode[/C][C]17.7[/C][C]18.14[/C][C]22.404[/C][C]18.14[/C][C]25.496[/C][C]30.664[/C][C]35.45[/C][C]3.3052[/C][C]3.0926[/C][/ROW]
[ROW][C]mode k.dens[/C][C]20.045[/C][C]20.102[/C][C]20.325[/C][C]20.659[/C][C]26.44[/C][C]27.023[/C][C]27.344[/C][C]2.8461[/C][C]6.1153[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289790&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=289790&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 Blocked Bootstrap
statisticP0.5P2.5Q1EstimateQ3P97.5P99.5S.D.IQR
mean23.33123.98624.4624.79225.08325.65625.9630.458650.62318
median21.8123.29924.292525.3326.5126.550.797581.04
midrange23.68724.00525.54525.7726.79627.0227.020.769621.2512
mode17.718.1422.40418.1425.49630.66435.453.30523.0926
mode k.dens20.04520.10220.32520.65926.4427.02327.3442.84616.1153



Parameters (Session):
par1 = Full Box-Cox transform ; par2 = -2 ; par3 = 4 ; par4 = 0 ; par5 = No ;
Parameters (R input):
par1 = 500 ; par2 = 12 ; par3 = 5 ; par4 = P0.5 P2.5 Q1 Q3 P97.5 P99.5 ; par5 = ; par6 = ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
if (par1 < 10) par1 = 10
if (par1 > 5000) par1 = 5000
if (par2 < 3) par2 = 3
if (par2 > length(x)) par2 = length(x)
library(modeest)
library(lattice)
library(boot)
boot.stat <- function(s)
{
s.mean <- mean(s)
s.median <- median(s)
s.midrange <- (max(s) + min(s)) / 2
s.mode <- mlv(s,method='mfv')$M
s.kernelmode <- mlv(s, method='kernel')$M
c(s.mean, s.median, s.midrange, s.mode, s.kernelmode)
}
(r <- tsboot(x, boot.stat, R=par1, l=12, sim='fixed'))
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='plot7a.png')
plot(r$t[,4],type='p',ylab='simulated values',main='Simulation of Mode')
grid()
dev.off()
bitmap(file='plot8a.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()
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='plot7.png')
boxplot(z,notch=TRUE,ylab='simulated values',main='Bootstrap Simulation - Central Tendency')
grid()
dev.off()
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'
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimation Results of Blocked Bootstrap',10,TRUE)
a<-table.row.end(a)
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,par3))
a<-table.element(a,signif(p05,par3))
a<-table.element(a,signif(q1,par3))
a<-table.element(a,signif(r$t0[1],par3))
a<-table.element(a,signif(q3,par3))
a<-table.element(a,signif(p95,par3))
a<-table.element(a,signif(p99,par3))
a<-table.element( a,signif( sqrt(var(r$t[,1])),par3 ) )
a<-table.element(a,signif(q3-q1,par3))
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,par3))
a<-table.element(a,signif(p05,par3))
a<-table.element(a,signif(q1,par3))
a<-table.element(a,signif(r$t0[2],par3))
a<-table.element(a,signif(q3,par3))
a<-table.element(a,signif(p95,par3))
a<-table.element(a,signif(p99,par3))
a<-table.element(a,signif(sqrt(var(r$t[,2])),par3))
a<-table.element(a,signif(q3-q1,par3))
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,par3))
a<-table.element(a,signif(p05,par3))
a<-table.element(a,signif(q1,par3))
a<-table.element(a,signif(r$t0[3],par3))
a<-table.element(a,signif(q3,par3))
a<-table.element(a,signif(p95,par3))
a<-table.element(a,signif(p99,par3))
a<-table.element(a,signif(sqrt(var(r$t[,3])),par3))
a<-table.element(a,signif(q3-q1,par3))
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,par3))
a<-table.element(a,signif(p05,par3))
a<-table.element(a,signif(q1,par3))
a<-table.element(a,signif(r$t0[4],par3))
a<-table.element(a,signif(q3,par3))
a<-table.element(a,signif(p95,par3))
a<-table.element(a,signif(p99,par3))
a<-table.element(a,signif(sqrt(var(r$t[,4])),par3))
a<-table.element(a,signif(q3-q1,par3))
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,par3))
a<-table.element(a,signif(p05,par3))
a<-table.element(a,signif(q1,par3))
a<-table.element(a,signif(r$t0[5],par3))
a<-table.element(a,signif(q3,par3))
a<-table.element(a,signif(p95,par3))
a<-table.element(a,signif(p99,par3))
a<-table.element(a,signif(sqrt(var(r$t[,5])),par3))
a<-table.element(a,signif(q3-q1,par3))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')