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 computationSat, 12 Dec 2009 04:18:47 -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/2009/Dec/12/t126061676239rul5uevio4xow.htm/, Retrieved Mon, 29 Apr 2024 08:21:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66899, Retrieved Mon, 29 Apr 2024 08:21:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords KDGP2W32
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bootstrap Plot - Central Tendency] [opdracht 7 oef 2 1] [2009-12-12 11:18:47] [bd31152a03695b5eaed3983221abfe73] [Current]
Feedback Forum

Post a new message
Dataseries X:
102,5
77,7
82,8
77,3
103,1
99,7
99,5
107,2
96,7
97,1
105,2
151,2
102,7
75,4
87,2
83,7
105,8
111,5
99,7
111,2
101,5
110,9
116,3
164,9
118,1
83,7
84
107,2
113,7
120,7
111,2
112,4
112,5
130,4
130,7
174,3
132,2
91,8
104,2
104,8
131,4
141,2
132,7
135,7
136,9
151,2
144
201,5
149,6
108,7
122,8
126,7
139,9
162,5
142,7
151,6
148,1
159
157,8
226,7
153,7
122,3
117,6
166
154,5
183,9
164,4
173,3
160,2
166,4
170,3
238,4
166,8
122,5
141,8
140,5
173,8
188,8
168
187,4
177,7
183,8
196,1
264,6
193,7
141,3
170,1
163,7
190,1
230,7
195,9
210,3
204,7
210,3
221,2
288,2
203,2
162,4
149,2
195,3
213,7
227,9
212,1
226,8
212,6
220,9
228,1
311,6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66899&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 Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean147.9375151.298148148148154.1141203703704.854554122939856.17662037037036
median141.2146.05149.66.268193438271658.4
midrange181.8193.5193.58.087879821065611.7

\begin{tabular}{lllllllll}
\hline
Estimation Results of Bootstrap \tabularnewline
statistic & Q1 & Estimate & Q3 & S.D. & IQR \tabularnewline
mean & 147.9375 & 151.298148148148 & 154.114120370370 & 4.85455412293985 & 6.17662037037036 \tabularnewline
median & 141.2 & 146.05 & 149.6 & 6.26819343827165 & 8.4 \tabularnewline
midrange & 181.8 & 193.5 & 193.5 & 8.0878798210656 & 11.7 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66899&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]147.9375[/C][C]151.298148148148[/C][C]154.114120370370[/C][C]4.85455412293985[/C][C]6.17662037037036[/C][/ROW]
[ROW][C]median[/C][C]141.2[/C][C]146.05[/C][C]149.6[/C][C]6.26819343827165[/C][C]8.4[/C][/ROW]
[ROW][C]midrange[/C][C]181.8[/C][C]193.5[/C][C]193.5[/C][C]8.0878798210656[/C][C]11.7[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66899&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66899&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
mean147.9375151.298148148148154.1141203703704.854554122939856.17662037037036
median141.2146.05149.66.268193438271658.4
midrange181.8193.5193.58.087879821065611.7



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