Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_bootstrapplot.wasp
Title produced by softwareBlocked Bootstrap Plot - Central Tendency
Date of computationSun, 03 Jan 2010 12:47:08 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Jan/03/t12625481033dol7jcqvr5x476.htm/, Retrieved Fri, 03 May 2024 13:50:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=71555, Retrieved Fri, 03 May 2024 13:50:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W32
Estimated Impact148
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [] [] [1970-01-01 00:00:00] [8c7c3dc396eba234a49aa27457495c03]
- RMPD  [(Partial) Autocorrelation Function] [] [2010-01-03 19:03:42] [8c7c3dc396eba234a49aa27457495c03]
- RMPD      [Blocked Bootstrap Plot - Central Tendency] [] [2010-01-03 19:47:08] [4ed6a647410123598b51b3bdc215cd7e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,82000
8,80000
8,82000
8,58000
8,54000
8,42000
8,43000
8,44000
8,09000
7,69000
7,56000
7,54000
7,40000
7,39000
7,37000
7,31000
7,35000
7,26000
7,37000
7,35000
7,33000
7,32000
7,31000
7,33000
7,32000
7,27000
7,48000
7,70000
7,77000
7,80000
7,84000
7,81000
7,78000
7,82000
7,80000
7,81000
7,80000
7,66000
7,41000
7,35000
7,39000
7,32000
7,32000
7,30000
7,29000
7,26000
7,22000
7,21000
7,21000
7,21000
7,20000
7,19000
7,18000
7,12000
7,12000
7,07000
7,08000
7,05000
7,06000
7,07000
7,08000
7,08000
7,09000
7,07000
7,06000
6,99000
6,99000
6,99000
6,98000
6,96000
6,95000
6,91000
6,91000
6,87000
6,91000
6,89000
6,88000
6,90000
6,91000
6,85000
6,86000
6,82000
6,80000
6,83000
6,84000
6,89000
7,14000
7,21000
7,25000
7,31000
7,30000
7,48000
7,49000
7,40000
7,44000
7,42000
7,14000
7,24000
7,33000
7,61000
7,66000
7,69000
7,70000
7,68000
7,71000
7,71000
7,72000
7,68000
7,72000
7,74000
7,76000
7,90000
7,97000
7,96000
7,95000
7,97000
7,93000
7,99000
7,96000
7,92000
7,97000
7,98000
8,00000
8,04000
8,17000
8,29000
8,26000
8,30000
8,32000
8,28000
8,27000
8,32000




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=71555&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=71555&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=71555&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'Gwilym Jenkins' @ 72.249.127.135







Estimation Results of Blocked Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean7.4081257.512878787878797.576098484848480.1246101043277750.167973484848485
median7.316257.387.443750.1562417344752570.127500000000000
midrange7.72757.817.81750.1571071387977790.0900000000000016

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & 7.408125 & 7.51287878787879 & 7.57609848484848 & 0.124610104327775 & 0.167973484848485 \tabularnewline
median & 7.31625 & 7.38 & 7.44375 & 0.156241734475257 & 0.127500000000000 \tabularnewline
midrange & 7.7275 & 7.81 & 7.8175 & 0.157107138797779 & 0.0900000000000016 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=71555&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]7.408125[/C][C]7.51287878787879[/C][C]7.57609848484848[/C][C]0.124610104327775[/C][C]0.167973484848485[/C][/ROW]
[ROW][C]median[/C][C]7.31625[/C][C]7.38[/C][C]7.44375[/C][C]0.156241734475257[/C][C]0.127500000000000[/C][/ROW]
[ROW][C]midrange[/C][C]7.7275[/C][C]7.81[/C][C]7.8175[/C][C]0.157107138797779[/C][C]0.0900000000000016[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=71555&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=71555&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
mean7.4081257.512878787878797.576098484848480.1246101043277750.167973484848485
median7.316257.387.443750.1562417344752570.127500000000000
midrange7.72757.817.81750.1571071387977790.0900000000000016



Parameters (Session):
par1 = 50 ; par2 = 12 ;
Parameters (R input):
par1 = 50 ; 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')