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 computationSun, 09 Dec 2012 10:29:42 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/09/t1355067350rkgof1vv8xjxrga.htm/, Retrieved Fri, 26 Apr 2024 20:51:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=197931, Retrieved Fri, 26 Apr 2024 20:51:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Data Series] [Bivariate dataset] [2008-01-05 23:51:08] [74be16979710d4c4e7c6647856088456]
- RMPD  [Blocked Bootstrap Plot - Central Tendency] [Colombia Coffee] [2008-01-07 10:26:26] [74be16979710d4c4e7c6647856088456]
- RM D      [Blocked Bootstrap Plot - Central Tendency] [Paper] [2012-12-09 15:29:42] [38c0fff34b8aa23b45468de8b641bfee] [Current]
-    D        [Blocked Bootstrap Plot - Central Tendency] [paper] [2012-12-16 11:28:04] [fa543719fe3f8358943b948de15add90]
- RMPD        [Histogram] [paper] [2012-12-16 11:35:45] [fa543719fe3f8358943b948de15add90]
Feedback Forum

Post a new message
Dataseries X:
115.01
124.56
128.60
131.54
124.93
126.77
128.97
149.91
149.55
149.91
159.47
162.04
163.88
166.82
173.80
172.06
178.21
174.53
176.37
168.65
166.82
164.24
163.51
164.61
163.51
164.61
167.92
160.94
156.53
159.47
149.18
135.58
124.93
116.84
114.27
114.64
112.80
113.17
111.33
113.91
119.42
120.89
122.04
120.15
118.21
125.33
135.37
146.89
149.54
160.84
169.95
177.13
169.35
159.93
149.69
148.67
136.32
128.17
138.74
140.58
147.57
147.83
155.65
148.88
147.90
141.99
136.58
121.82
127.52
129.80
131.29
135.96
146.50
158.65
153.21
147.04
141.04
140.45
140.15
139.30
137.60
146.02
158.79
167.19
161.99
164.62
156.21
154.42
150.39
148.98
158.61
169.98
190.09
184.39
193.67
203.79
204.07
208.92
206.88
218.89
215.52
251.66
262.11
227.27
202.60
191.63
178.71
178.32
176.41
175.70
175.73
172.35
176.61
183.49
172.59
148.39
138.31
150.61
151.74
151.66
149.88
144.62
137.10
140.05
138.92
130.15
128.92
120.64
118.54
107.95
107.93
126.54
130.21
126.21
125.29
117.03
117.34
113.87
113.00
111.41
103.02
111.41
113.19
108.10
108.80
102.16
105.83
108.41
105.70
105.11
110.78
113.51
108.98
108.28
117.49
128.22
127.73
128.01
132.84
128.12
130.28
129.30
135.00
127.23
123.79
121.92
122.03
123.34
125.27
122.53
125.31
123.28
122.56
123.72
121.46
132.03
149.30
161.26
187.84
190.32
176.26
168.98
149.60
150.84
141.81
138.62
141.96
131.35
131.62
148.72
145.62
147.46
160.55
165.57
166.33
161.39
166.28
166.58
163.73
154.74
150.60
141.29
151.03
150.15
156.57
153.87
153.59
151.30
150.99
140.88
144.25
141.93
143.87
149.36
159.71
167.83
161.12
164.44
167.16
179.84
174.44
180.35
193.17
195.16
202.43
189.91
195.98
212.09
205.81
204.31
196.07
199.98
199.10
198.31
195.72
223.04
238.41
259.73
326.54
335.15
321.81
368.62
369.59
425.00
439.72
362.23
328.76
348.55
328.18
329.34
295.55
237.38
226.85
220.14
239.36
224.69
230.98
233.47
256.70
253.41
224.95
210.37
191.09
198.85
211.04
206.25
201.51
194.54
191.07
192.82
181.88
157.67
195.82
246.25
271.69
270.23
274.08
306.53
326.55
348.15
316.75
336.12
354.47
326.43
303.88
327.07
315.92
289.01
281.01
269.03
274.89
277.77
283.88
266.32
264.36
276.19
345.69
349.40
353.42
358.20
361.00




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=197931&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=197931&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197931&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
statisticQ1EstimateQ3S.D.IQR
mean170.85811461794178.879302325581187.28141196013312.372530963037916.4232973421927
median150.99158.65163.889.538810884832212.89
midrange234.59625270.94270.9418.627353539482536.34375

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & 170.85811461794 & 178.879302325581 & 187.281411960133 & 12.3725309630379 & 16.4232973421927 \tabularnewline
median & 150.99 & 158.65 & 163.88 & 9.5388108848322 & 12.89 \tabularnewline
midrange & 234.59625 & 270.94 & 270.94 & 18.6273535394825 & 36.34375 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197931&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]170.85811461794[/C][C]178.879302325581[/C][C]187.281411960133[/C][C]12.3725309630379[/C][C]16.4232973421927[/C][/ROW]
[ROW][C]median[/C][C]150.99[/C][C]158.65[/C][C]163.88[/C][C]9.5388108848322[/C][C]12.89[/C][/ROW]
[ROW][C]midrange[/C][C]234.59625[/C][C]270.94[/C][C]270.94[/C][C]18.6273535394825[/C][C]36.34375[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197931&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197931&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
mean170.85811461794178.879302325581187.28141196013312.372530963037916.4232973421927
median150.99158.65163.889.538810884832212.89
midrange234.59625270.94270.9418.627353539482536.34375



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