Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_bootstrapplot.wasp
Title produced by softwareBlocked Bootstrap Plot - Central Tendency
Date of computationWed, 24 Jan 2018 09:30:15 +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/t15167826523kq7rhwpcvqkeqb.htm/, Retrieved Mon, 06 May 2024 00:50:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=311672, Retrieved Mon, 06 May 2024 00:50:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact36
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Blocked Bootstrap Plot - Central Tendency] [] [2018-01-24 08:30:15] [ca8d18f187365d46258cefbf7e3ea6e7] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.72923686058208
0.122433126801146
0.523768788982081
-0.501759426013243
-1.86386120887019
0.0717422351702835
-0.380578531491989
-0.298516117882738
1.94316215667028
-1.2477990137814
1.35257277275093
2.84406850014719
1.12274878943606
-2.32540657982629
-2.89902363942181
0.246874012745119
-0.731094375584062
1.97769407549524
-0.0893081864578922
-1.64931358279907
1.78988776616251
-0.655026882699021
-0.955180089821391
-0.501427837065876
-1.47468882156665
2.4255103110643
-0.388732570521789
-1.41970373897772
-0.435743764210551
0.588337253253952
-1.73087780677345
0.416192838768035
-0.135602934239543
1.5607508968729
-0.619488852927662
0.130061173484126
-0.485714783249832
1.19042117073251
0.504940688912011
-0.266725732456376
1.8987616014054
0.9835731579105
0.221023228988728
-0.176860990484583
-0.162198287814433
0.789115908802921
1.41209201053576
0.518161844628975
2.36462043434148
-1.24446105804486
1.09138861156198
0.422175612267996
-0.997989397904933
0.754650745534752
-1.44375392644115
0.568632265545353
1.35413305240232
-1.34288885715882
-0.0968579661829747
0.242767533935212
0.255744783559028
-0.243232899636027
0.461607264600104
0.0650797112167817
2.25999343044582
1.80462197944889
2.32548979115297
0.682758803307819
-0.335554613197298
-0.997929583796738
0.975071282421449
-1.17268516900173
-0.00033727848328155
-1.71460596672184
-1.34872342854985
-1.6521456119588
-1.48335049731373
0.925016701443022
-0.226525557050897
0.774905929042344
-0.339789522342373
0.89311055438168
-0.864578780222596
-1.95217915873499
-0.11317194501752
1.02470860347022
-1.25650654087286
-0.602130638597027
-0.83233134657693
-0.446577198612737
-4.01053303468812
0.288513333839786
-1.00798474916531
-0.572816189634855
-0.297410570159231
1.21578539483534
-0.727486991378146
-0.843943364912431
-1.20889338911855
-0.649656515850742
3.19984732249364
0.572738529480398
-0.0199646221520177
0.462316869083462
-1.28699501625665
-1.80757939159691
-2.15431670426712
0.707840316820782
1.36410372036211
0.314718394752158
-4.1002515835693
1.26992188862053
1.80144339707427
-0.42970220964945
0.529993653035631
1.18764422512472
-0.398233352310507
-0.421884162222733
-2.6898323919027
1.0140628812162
-0.542058945797581
-0.368690243263354
1.31411524584048
-0.428705333764204
-0.663582558495647
1.37204511801761
-1.27310996987184
0.810157913937622
1.5741305304336
-1.02515011594099
-0.998930862337702
-0.0536208441845614
1.66337771592794
-0.178008462116163
-1.09164775518912
1.96797905166753
0.634220496887586
1.38764487483822
0.755706540010011
-2.3214750727902
1.62023993830839
0.423224828517651
-1.7051130142733
0.541981863740972
-0.593027838089475
0.213567450337977
-0.696840242545287
0.0777251570183703
-0.725328497765991
2.1315776363419
-0.33645518676905
-0.979182554450992
-0.242246084610726
-1.82980075345691
-1.14814874978527
0.496126806273696
-0.37803015357093
0.564631359789787
0.268965939275991
0.752661368724124
-2.30203173253409
2.82635859577673
-0.607627712639158
3.77405193258893
1.08426693162876
-2.2508985634727
0.290663952981133
-1.1346060583543
1.41583984485642
0.590041695581542
1.22056539827692
0.0970995178245224
-0.906020145960084
-0.597681226735446
0.437155726246845
0.742487563055592
1.22917286536281
-0.95259160353182
-0.755286828701791




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

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







Estimation Results of Blocked Bootstrap
statisticP0.5P2.5Q1EstimateQ3P97.5P99.5S.D.IQR
mean-0.2079-0.17224-0.056007-1.7059e-160.0601330.182060.223020.0870810.11614
median-0.38058-0.33555-0.17686-0.0893080.0717420.242770.262420.155140.2486
midrange-0.8777-0.63695-0.40534-0.1631-0.118240.493220.736010.300140.2871
mode-2.1918-1.4747-0.34311-1.6918e-160.358031.54882.82640.69590.70114
mode k.dens-0.75478-0.64696-0.46692-0.273980.019040.509180.720740.335810.48596

\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 & -0.2079 & -0.17224 & -0.056007 & -1.7059e-16 & 0.060133 & 0.18206 & 0.22302 & 0.087081 & 0.11614 \tabularnewline
median & -0.38058 & -0.33555 & -0.17686 & -0.089308 & 0.071742 & 0.24277 & 0.26242 & 0.15514 & 0.2486 \tabularnewline
midrange & -0.8777 & -0.63695 & -0.40534 & -0.1631 & -0.11824 & 0.49322 & 0.73601 & 0.30014 & 0.2871 \tabularnewline
mode & -2.1918 & -1.4747 & -0.34311 & -1.6918e-16 & 0.35803 & 1.5488 & 2.8264 & 0.6959 & 0.70114 \tabularnewline
mode k.dens & -0.75478 & -0.64696 & -0.46692 & -0.27398 & 0.01904 & 0.50918 & 0.72074 & 0.33581 & 0.48596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=311672&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]-0.2079[/C][C]-0.17224[/C][C]-0.056007[/C][C]-1.7059e-16[/C][C]0.060133[/C][C]0.18206[/C][C]0.22302[/C][C]0.087081[/C][C]0.11614[/C][/ROW]
[ROW][C]median[/C][C]-0.38058[/C][C]-0.33555[/C][C]-0.17686[/C][C]-0.089308[/C][C]0.071742[/C][C]0.24277[/C][C]0.26242[/C][C]0.15514[/C][C]0.2486[/C][/ROW]
[ROW][C]midrange[/C][C]-0.8777[/C][C]-0.63695[/C][C]-0.40534[/C][C]-0.1631[/C][C]-0.11824[/C][C]0.49322[/C][C]0.73601[/C][C]0.30014[/C][C]0.2871[/C][/ROW]
[ROW][C]mode[/C][C]-2.1918[/C][C]-1.4747[/C][C]-0.34311[/C][C]-1.6918e-16[/C][C]0.35803[/C][C]1.5488[/C][C]2.8264[/C][C]0.6959[/C][C]0.70114[/C][/ROW]
[ROW][C]mode k.dens[/C][C]-0.75478[/C][C]-0.64696[/C][C]-0.46692[/C][C]-0.27398[/C][C]0.01904[/C][C]0.50918[/C][C]0.72074[/C][C]0.33581[/C][C]0.48596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=311672&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=311672&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
mean-0.2079-0.17224-0.056007-1.7059e-160.0601330.182060.223020.0870810.11614
median-0.38058-0.33555-0.17686-0.0893080.0717420.242770.262420.155140.2486
midrange-0.8777-0.63695-0.40534-0.1631-0.118240.493220.736010.300140.2871
mode-2.1918-1.4747-0.34311-1.6918e-160.358031.54882.82640.69590.70114
mode k.dens-0.75478-0.64696-0.46692-0.273980.019040.509180.720740.335810.48596



Parameters (Session):
par1 = grey ; par2 = no ;
Parameters (R input):
par1 = 500 ; par2 = 12 ; par3 = 5 ; par4 = P0.5 P2.5 Q1 Q3 P97.5 P99.5 ;
R code (references can be found in the software module):
par4 <- 'P1 P5 Q1 Q3 P95 P99'
par3 <- '5'
par2 <- '12'
par1 <- '500'
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')