Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_bootstrapplot1.wasp
Title produced by softwareBootstrap Plot - Central Tendency
Date of computationMon, 02 May 2011 20:46:30 +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/t13043690206dkfwvk4gxrhiw6.htm/, Retrieved Sat, 11 May 2024 16:57:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=120839, Retrieved Sat, 11 May 2024 16:57:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W22
Estimated Impact83
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bootstrap Plot - Central Tendency] [density plot opga...] [2011-05-02 20:46:30] [93d78dde8d64c5a73537ad1fcc88d508] [Current]
Feedback Forum

Post a new message
Dataseries X:
5939520,00
89948768,00
80953652,00
85942882,00
8944937,00
82975432,00
24940816,00
21973899,00
37950221,00
45949881,00
85950373,00
48960313,00
81954506,00
24960419,00
65973338,00
22950513,00
54963528,00
90995659,00
91967517,00
28999053,00
96990529,00
38979852,00
81496957,00
74982424,00
70976192,00
90990000,00
12998850,00
92986156,00
67994976,00
91022206,00
87992489,00
421022698,00
11018942,00
79100042,00
65996442,00
51000620,00
12996871,00
44994249,00
99996135,00
91977037,00
63974211,00
15998036,00
65974265,00
33984410,00
45939098,00
67935827,00
66921032,00
89911836,00
71890975,00
72880342,00
28871286,00
41844334,00
82847667,00
24871401,00
3867451,00
99896846,00
41890361,00
45884264,00
69884586,00
95896400,00
39904491,00
81900399,00
27909863,00
88900470,00
89917101,00
2945005,00
4934411,00
61957264,00
31946515,00
3938309,00
52933321,00
21947613,00




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 216.218.223.82

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=120839&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'George Udny Yule' @ 216.218.223.82







Estimation Results of Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean57768501.503472261236226.166666765711281.31597225867486.982842337942779.8125
median5496352864973774.5664587377388176.1821400611495209
midrange91971379.375211983851.5212445074.571182803.2487856120473695.125

\begin{tabular}{lllllllll}
\hline
Estimation Results of Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & 57768501.5034722 & 61236226.1666667 & 65711281.3159722 & 5867486.98284233 & 7942779.8125 \tabularnewline
median & 54963528 & 64973774.5 & 66458737 & 7388176.18214006 & 11495209 \tabularnewline
midrange & 91971379.375 & 211983851.5 & 212445074.5 & 71182803.2487856 & 120473695.125 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=120839&T=1

[TABLE]
[ROW][C]Estimation Results of 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]57768501.5034722[/C][C]61236226.1666667[/C][C]65711281.3159722[/C][C]5867486.98284233[/C][C]7942779.8125[/C][/ROW]
[ROW][C]median[/C][C]54963528[/C][C]64973774.5[/C][C]66458737[/C][C]7388176.18214006[/C][C]11495209[/C][/ROW]
[ROW][C]midrange[/C][C]91971379.375[/C][C]211983851.5[/C][C]212445074.5[/C][C]71182803.2487856[/C][C]120473695.125[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=120839&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=120839&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 Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean57768501.503472261236226.166666765711281.31597225867486.982842337942779.8125
median5496352864973774.5664587377388176.1821400611495209
midrange91971379.375211983851.5212445074.571182803.2487856120473695.125



Parameters (Session):
par1 = 50 ;
Parameters (R input):
par1 = 50 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par1 < 10) par1 = 10
if (par1 > 5000) par1 = 5000
library(lattice)
library(boot)
boot.stat <- function(s,i)
{
s.mean <- mean(s[i])
s.median <- median(s[i])
s.midrange <- (max(s[i]) + min(s[i])) / 2
c(s.mean, s.median, s.midrange)
}
(r <- boot(x,boot.stat, R=par1, stype='i'))
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 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')