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 computationMon, 02 May 2011 09:20:29 +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/2011/May/02/t1304327797vfz1s0nbfpcicuy.htm/, Retrieved Sun, 12 May 2024 03:31:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=120748, Retrieved Sun, 12 May 2024 03:31:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W22
Estimated Impact148
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Mean Plot] [Frederik Degrave ...] [2011-04-04 14:59:22] [64e52674b90f84ba07b32b178b4772ef]
- RMP     [Blocked Bootstrap Plot - Central Tendency] [Opdracht 7 - Fred...] [2011-05-02 09:20:29] [b6e5b195a2d43a03a9c0f98e6b736b5c] [Current]
- RMP       [Variability] [Opdracht 8 - Fred...] [2011-05-09 17:57:10] [64e52674b90f84ba07b32b178b4772ef]
- RMP       [Standard Deviation Plot] [Opdracht 8 - Fred...] [2011-05-09 18:01:54] [64e52674b90f84ba07b32b178b4772ef]
- RMP       [Standard Deviation-Mean Plot] [Opdracht 8 - Fred...] [2011-05-09 18:04:27] [64e52674b90f84ba07b32b178b4772ef]
Feedback Forum

Post a new message
Dataseries X:
335378
331533
318620
320838
326738
339196
336544
316150
309160
314901
313468
309914
306532
299149
288776
289441
293886
305957
305486
285179
280244
290616
292133
300414
306122
304198
300074
307836
313761
329573
327225
306307
316532
323953
327103
337606
344178
342892
344693
355072
372423
378519
379421
366121
367866
367980
370804
376126
377795
376740
372402
380575
387267
387820
389827
376911
377367
378670
385705
387495
386586
388884
384359
392058
384502
381903
382842
371551
369167
370861
378205
377632
376974
370490
364431
372720
375787
375021
374556
355178
352487
355996
353467
356427
354846




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org

\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 & 'Herman Ole Andreas Wold' @ www.yougetit.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=120748&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]'Herman Ole Andreas Wold' @ www.yougetit.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=120748&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=120748&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'Herman Ole Andreas Wold' @ www.yougetit.org







Estimation Results of Blocked Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean340142.570588235346613.435294118351427.7852941189365.4748729216211285.2147058824
median337606355072368870.2517123.58873583131264.25
midrange336151336151338469.254042.486020182052318.25

\begin{tabular}{lllllllll}
\hline
Estimation Results of Blocked Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & 340142.570588235 & 346613.435294118 & 351427.785294118 & 9365.47487292162 & 11285.2147058824 \tabularnewline
median & 337606 & 355072 & 368870.25 & 17123.588735831 & 31264.25 \tabularnewline
midrange & 336151 & 336151 & 338469.25 & 4042.48602018205 & 2318.25 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=120748&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]340142.570588235[/C][C]346613.435294118[/C][C]351427.785294118[/C][C]9365.47487292162[/C][C]11285.2147058824[/C][/ROW]
[ROW][C]median[/C][C]337606[/C][C]355072[/C][C]368870.25[/C][C]17123.588735831[/C][C]31264.25[/C][/ROW]
[ROW][C]midrange[/C][C]336151[/C][C]336151[/C][C]338469.25[/C][C]4042.48602018205[/C][C]2318.25[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=120748&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=120748&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
mean340142.570588235346613.435294118351427.7852941189365.4748729216211285.2147058824
median337606355072368870.2517123.58873583131264.25
midrange336151336151338469.254042.486020182052318.25



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')