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:04:23 +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/t14187350735j49s2vyotzpxwn.htm/, Retrieved Thu, 16 May 2024 11:02:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=269469, Retrieved Thu, 16 May 2024 11:02:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact56
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:04:23] [6f1b1943390e6908ad1cf28c6ee297e8] [Current]
Feedback Forum

Post a new message
Dataseries X:
-1.11161
-0.807338
-1.31633
-5.18846
-6.41206
0.639851
0.89311
0.292662
-1.80262
-4.49318
-1.60734
-5.87431
-2.1979
-1.80217
-7.39745
-1.5009
-0.897901
-4.71161
-2.72022
-3.3833
-5.97902
0.687943
-3.21161
1.21154
-1.6215
-0.745993
2.83731
0.075507
-3.21206
-1.98801
-5.18801
-2.10217
-4.3215
-2.88846
-2.31206
-2.60262
-2.4597
1.11281
-3.70734
-2.7352
-7.21206
-1.71206
-0.216776
-2.41678
0.293934
-2.92105
-0.474306
-4.21078
-0.788014
-0.439098
-0.92966
-5.20135
-1.79318
-0.220223
0.711537
-3.43093
-7.72921
2.23513
-4.06787
0.142026
-4.33565
-1.72105
-6.41161
3.20682
-4.60217
-3.1155
-2.59745
0.306818
2.01626
-1.01977
-2.13048
-2.40217
-4.73393
2.07034
-0.678576
-0.488014
-0.0343793
-0.70689
-2.58674
-5.51678
-3.03393
0.913258
-2.63393
-7.9155
-1.9773
-0.72966
-0.701347
-2.13393
-5.14337
0.0849448
0.279777
-6.6155
-2.3155
-4.73393
-4.41078
-4.32449
-5.54382
-1.12966
0.965621
-4.42022
-1.62022
-2.91977
-2.65888
-2.30135
1.9845
-3.88202
1.43213
-7.9009
-6.71506
-3.51506
-1.61977
-1.01078
-8.76206
-0.307338
5.19738
4.5285
2.22832
0.698653
3.56907
4.87895
2.98794
-0.347452
4.70255
1.58794
-2.09318
0.325694
3.4021
1.22098
6.26562
0.778505
1.1785
2.34783
2.05682
2.42098
-0.243182
-0.0431816
4.23794
-4.30262
4.28367
3.40682
-0.615504
4.9521
4.23232
4.53794
2.12895
3.74311
1.32569
0.861986
2.20446
5.03322
-3.69273
2.78322
5.03322
3.04783
1.8609
1.6345
5.31435
1.37895
0.792475
-1.36506
4.28776
3.57978
3.29783
2.98794
5.84247
-1.47494
4.28776
2.3609
1.57079
-2.18393
2.89675
4.77551
1.44203
2.0785
2.0785
5.3845
0.552099
5.61199
3.1345
-6.30689
-0.23865
0.784945
5.7785
2.13494
0.789215
2.25191
3.50191
-0.698088
-1.59337
0.489215
-2.49382
4.23169
-2.30135
5.60854
0.589664
1.58731
0.319516
2.45101
1.99438
2.82079
6.13794
1.17506
0.00726687
2.32551
-0.0479005
1.06607
-2.52902
0.12034
7.96988
4.59393
-1.5391
2.13794
-1.16914
0.0849448
2.02423
0.54457
3.84393
5.03794
-1.48438
1.38304
4.05255
-5.1509
-1.39037
3.22098
5.49783
1.66607
3.61199
3.07034
5.28794
5.24783
6.31861
5.19311
0.465621
0.0520995
-1.6224
-8.71678
-1.68393
1.22098
0.682321
0.708091
-0.975765
-1.61034
2.6845
5.84247
-1.64382
2.07034
4.00727
1.2521
1.98367
0.656818
-1.36678
-1.85217
2.22034
2.3491
-0.330933
2.89719
-4.57494
-6.41633
-0.515055
-3.84191
-1.47494
-1.70753
-1.21831
2.6845
3.63966
0.87034
0.730226
3.10854
3.90146
-1.57966
2.44438
-0.539098
3.66045
3.79719
2.9845
0.378954
3.11607






Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 3 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.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=269469&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.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=269469&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269469&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 time3 seconds
R Server'Gertrude Mary Cox' @ cox.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.236801805776173-1.59927797868063e-080.2903842677617330.4272829814667030.527186073537906
median-0.2167760.120340.6398510.534332843278090.856627
midrange-1.221725-0.39609-0.396090.4500770784310970.825635

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & -0.236801805776173 & -1.59927797868063e-08 & 0.290384267761733 & 0.427282981466703 & 0.527186073537906 \tabularnewline
median & -0.216776 & 0.12034 & 0.639851 & 0.53433284327809 & 0.856627 \tabularnewline
midrange & -1.221725 & -0.39609 & -0.39609 & 0.450077078431097 & 0.825635 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269469&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.236801805776173[/C][C]-1.59927797868063e-08[/C][C]0.290384267761733[/C][C]0.427282981466703[/C][C]0.527186073537906[/C][/ROW]
[ROW][C]median[/C][C]-0.216776[/C][C]0.12034[/C][C]0.639851[/C][C]0.53433284327809[/C][C]0.856627[/C][/ROW]
[ROW][C]midrange[/C][C]-1.221725[/C][C]-0.39609[/C][C]-0.39609[/C][C]0.450077078431097[/C][C]0.825635[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269469&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269469&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.236801805776173-1.59927797868063e-080.2903842677617330.4272829814667030.527186073537906
median-0.2167760.120340.6398510.534332843278090.856627
midrange-1.221725-0.39609-0.396090.4500770784310970.825635



Parameters (Session):
par1 = 277 ; par2 = 12 ;
Parameters (R input):
par1 = 277 ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '12'
par1 <- '500'
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')