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 computationTue, 16 Dec 2014 13:05:34 +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/2014/Dec/16/t14187351394aeo7gw4gaqw9nz.htm/, Retrieved Thu, 16 May 2024 23:10:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=269473, Retrieved Thu, 16 May 2024 23:10:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact82
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Blocked Bootstrap Plot - Central Tendency] [] [2014-12-16 13:05:34] [6f1b1943390e6908ad1cf28c6ee297e8] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.25892
-1.29359
-0.920014
-5.5369
-3.9301
-3.03206
0.803242
0.144455
0.207334
-4.96333
-3.26506
-5.01001
0.713676
-1.38976
5.29186
-1.50333
-0.645347
-1.22947
-4.36062
-3.04073
-6.41111
2.66673
-3.72189
-1.4437
-0.493127
-6.78728
0.82794
-0.98053
-2.83563
-2.34581
-3.02676
-2.22128
-1.21339
-3.31238
-1.8382
0.967164
-3.39549
-0.592319
-3.32082
-3.69849
-6.88915
-1.20984
-1.07223
-2.2627
-0.73295
-3.4012
-1.45618
-4.87817
1.61385
0.215291
-2.86699
-4.87056
-2.82001
1.30797
1.19333
-1.26289
-5.9648
3.41831
1.42682
2.44028
-1.71846
-1.57223
-6.43929
-0.730622
-2.37195
-1.00497
-3.50056
-2.89783
-0.226356
0.621659
-2.14961
-0.731829
-0.521855
0.560708
0.14111
-1.07223
1.43837
-0.796758
-3.51033
-5.06399
-2.42912
0.485059
-1.80269
-5.55018
-4.44373
-0.863355
0.225464
-2.01033
-3.68598
1.40941
0.741718
-5.71258
-2.58405
-2.55191
-6.31413
-2.48869
-4.31448
-1.06209
1.21339
-6.41604
-0.0229502
-0.710675
-2.30814
-4.18451
0.236184
-2.51068
-0.56445
-5.90941
-3.8701
-4.41413
-1.36526
-0.352548
-6.85416
-1.65857
4.32967
3.97903
3.86117
0.892669
2.22269
5.1284
2.10324
1.66783
3.1531
4.49829
-1.9124
-0.189148
3.50759
1.06244
4.05563
1.56244
0.859353
0.450244
1.10935
-0.317217
1.34258
-0.961596
4.30927
-2.20162
3.07762
3.1599
-0.182806
2.82627
0.603011
2.93143
2.60483
2.45342
0.584425
1.61117
0.656499
3.15016
-5.90039
2.35935
3.55269
2.52618
2.89267
1.61434
1.64788
2.76053
1.96022
-0.984939
2.38065
2.16261
2.75102
6.05313
4.27572
0.496705
2.28002
2.68823
1.71157
-0.70955
0.333504
5.21022
1.0561
3.58036
3.58036
4.83601
0.384742
5.1284
1.6803
-3.62932
-0.412865
-0.69278
5.20388
1.86094
-2.3469
3.33601
4.63633
-1.24151
-2.29183
1.06878
-1.15606
1.10912
-2.10733
2.30676
1.66624
3.01688
0.178487
1.86434
1.38904
2.70999
2.94255
1.96815
0.0560955
1.15785
-1.09192
3.01846
-1.25353
3.67328
2.80359
4.06244
0.922815
0.653328
-2.34056
2.04227
2.47903
-1.73993
3.43823
2.19866
-1.83263
1.28365
3.37976
-5.13136
-0.41399
2.30768
6.65402
0.69048
3.65673
3.43982
3.80722
2.97676
1.99875
5.58125
0.889499
-1.37319
-3.63748
-7.55566
0.64584
-0.0445387
0.81901
-1.28707
0.611169
-1.73358
0.785233
4.27572
-0.184161
1.73538
3.47745
-1.26849
2.93347
0.0325224
-1.71906
0.641314
1.61252
1.56356
-0.196845
4.08601
-3.7567
-3.86027
-0.0130382
-4.7882
0.496705
0.139499
-1.66059
0.785233
2.61071
0.266416
2.81742
-0.142923
3.9099
0.295437
2.33442
1.1429
2.81402
4.2603
-0.542289
1.6599
2.10754






Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\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 & 4 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=269473&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=269473&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269473&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 time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Estimation Results of Blocked Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean-0.28704273898917-1.16245487367391e-070.2004681754512640.3519612067771870.487510914440433
median-0.04453870.2361840.5844250.4432667074346090.6289637
midrange-0.751265-0.45082-0.4005150.2726094518361210.35075

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & -0.28704273898917 & -1.16245487367391e-07 & 0.200468175451264 & 0.351961206777187 & 0.487510914440433 \tabularnewline
median & -0.0445387 & 0.236184 & 0.584425 & 0.443266707434609 & 0.6289637 \tabularnewline
midrange & -0.751265 & -0.45082 & -0.400515 & 0.272609451836121 & 0.35075 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269473&T=1

[TABLE]
[ROW][C]Estimation Results of Blocked Bootstrap[/C][/ROW]
[ROW][C]statistic[/C][C]Q1[/C][C]Estimate[/C][C]Q3[/C][C]S.D.[/C][C]IQR[/C][/ROW]
[ROW][C]mean[/C][C]-0.28704273898917[/C][C]-1.16245487367391e-07[/C][C]0.200468175451264[/C][C]0.351961206777187[/C][C]0.487510914440433[/C][/ROW]
[ROW][C]median[/C][C]-0.0445387[/C][C]0.236184[/C][C]0.584425[/C][C]0.443266707434609[/C][C]0.6289637[/C][/ROW]
[ROW][C]midrange[/C][C]-0.751265[/C][C]-0.45082[/C][C]-0.400515[/C][C]0.272609451836121[/C][C]0.35075[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269473&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269473&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
statisticQ1EstimateQ3S.D.IQR
mean-0.28704273898917-1.16245487367391e-070.2004681754512640.3519612067771870.487510914440433
median-0.04453870.2361840.5844250.4432667074346090.6289637
midrange-0.751265-0.45082-0.4005150.2726094518361210.35075



Parameters (Session):
par1 = 277 ; par2 = 12 ;
Parameters (R input):
par1 = 277 ; par2 = 12 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
if (par1 < 10) par1 = 10
if (par1 > 5000) par1 = 5000
if (par2 < 3) par2 = 3
if (par2 > length(x)) par2 = length(x)
library(lattice)
library(boot)
boot.stat <- function(s)
{
s.mean <- mean(s)
s.median <- median(s)
s.midrange <- (max(s) + min(s)) / 2
c(s.mean, s.median, s.midrange)
}
(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='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]))
colnames(z) <- list('mean','median','midrange')
bitmap(file='plot7.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 Blocked Bootstrap',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'statistic',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,'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]]
a<-table.element(a,q1)
a<-table.element(a,r$t0[1])
a<-table.element(a,q3)
a<-table.element(a,sqrt(var(r$t[,1])))
a<-table.element(a,q3-q1)
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]]
a<-table.element(a,q1)
a<-table.element(a,r$t0[2])
a<-table.element(a,q3)
a<-table.element(a,sqrt(var(r$t[,2])))
a<-table.element(a,q3-q1)
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]]
a<-table.element(a,q1)
a<-table.element(a,r$t0[3])
a<-table.element(a,q3)
a<-table.element(a,sqrt(var(r$t[,3])))
a<-table.element(a,q3-q1)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')