Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_bootstrapplot1.wasp
Title produced by softwareBootstrap Plot - Central Tendency
Date of computationTue, 16 Dec 2014 09:16:12 +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/2014/Dec/16/t1418721462j3q68mdkqjujcco.htm/, Retrieved Thu, 16 May 2024 23:21:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=269186, Retrieved Thu, 16 May 2024 23:21:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact76
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Skewness and Kurtosis Test] [] [2014-11-04 10:14:29] [32b17a345b130fdf5cc88718ed94a974]
- RMPD    [Bootstrap Plot - Central Tendency] [Paper Kaat Van de...] [2014-12-16 09:16:12] [f89ab3f0b580871a9b630460155ef2b6] [Current]
Feedback Forum

Post a new message
Dataseries X:
1,344
0,994
1,205
-4,332
-4,163
-1,390
2,907
3,371
-0,737
-4,134
-0,874
-5,399
0,203
-0,427
-1,527
2,123
-0,162
-1,384
-1,524
-0,253
-5,090
2,271
-3,485
1,021
-0,047
-3,703
4,236
3,999
-1,721
-0,045
-1,063
-0,185
-2,225
-2,159
0,715
0,594
-0,764
2,049
-2,843
-0,438
-4,269
-0,213
0,899
-1,524
4,239
-1,772
1,942
-1,273
3,114
2,999
1,108
-0,921
-0,852
0,103
2,673
-0,837
-5,158
3,495
0,662
3,255
-3,148
0,415
-2,091
2,430
-3,543
0,673
-1,575
-0,877
1,717
2,449
-0,448
0,786
-0,185
4,914
1,653
1,131
2,435
1,105
1,531
-2,531
0,943
3,549
1,540
-5,231
0,177
1,785
2,490
2,638
-0,829
2,406
3,806
-4,717
-1,328
-1,061
-2,055
-1,462
-3,802
1,550
3,625
-2,079
1,979
0,476
-0,257
-0,968
4,575
-0,706
4,438
-4,372
-1,562
0,150
1,319
1,512
-7,752
0,303
1,988
1,355
1,755
-0,022
-1,178
2,854
-0,213
0,497
2,341
2,559
-3,557
-1,966
0,426
-0,239
3,616
-0,224
-0,338
-0,254
0,217
0,540
-0,791
-0,851
2,045
-3,544
2,138
1,268
-1,492
1,404
0,167
2,075
0,253
1,855
-0,896
0,129
-0,620
1,043
-6,851
1,294
1,728
-0,336
1,193
-0,058
2,010
0,749
-0,328
-1,298
3,459
1,203
0,435
4,863
3,346
-1,020
3,078
1,164
0,695
-2,264
1,333
3,546
-1,258
-1,897
-1,897
3,163
-1,371
2,698
-0,335
-4,652
-0,341
-0,890
2,537
1,041
-2,858
1,434
2,747
-1,530
-2,224
-0,140
-2,500
1,489
-3,222
4,055
0,491
1,133
-1,700
1,085
2,051
1,853
0,553
0,599
-1,909
0,563
-2,105
2,012
-2,102
0,171
4,724
2,601
-0,735
-0,920
-2,078
-0,877
-0,098
-1,392
2,081
0,862
-1,441
0,617
2,016
-4,651
-2,525
0,370
2,550
2,619
1,119
2,054
3,332
2,937
2,835
3,443
-0,671
-3,695
-3,734
-8,002
-0,458
-1,974
-0,422
-0,718
-1,520
-1,418
0,961
3,346
-2,484
-0,318
0,990
-0,578
0,621
-2,036
-3,906
-1,593
0,547
2,023
-3,767
2,058
-4,720
-6,613
-1,253
-5,940
-1,020
-1,588
-3,267
0,961
2,603
0,275
0,480
1,882
1,866
-1,488
0,840
-0,953
2,144
2,888
1,006
-0,257
1,633
-3,750




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Gwilym Jenkins' @ jenkins.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 & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269186&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]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269186&T=0

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







Estimation Results of Bootstrap
statisticP1P5Q1EstimateQ3P95P99S.D.IQR
mean-0.30155-0.20872-0.10952-7.1942e-060.117180.248780.333090.149160.2267
median-0.23157-0.199-0.0450.1690.334620.54350.607610.225980.37962
midrange-1.7135-1.639-1.5695-1.544-1.419-0.9685-0.847090.195970.1505
mode-5.5344-3.7677-1.02-0.185110.976943.09144.00482.01581.9969
mode k.dens-1.332-1.0434-0.449810.159610.755541.55921.86150.803811.2054

\begin{tabular}{lllllllll}
\hline
Estimation Results of Bootstrap \tabularnewline
statistic & P1 & P5 & Q1 & Estimate & Q3 & P95 & P99 & S.D. & IQR \tabularnewline
mean & -0.30155 & -0.20872 & -0.10952 & -7.1942e-06 & 0.11718 & 0.24878 & 0.33309 & 0.14916 & 0.2267 \tabularnewline
median & -0.23157 & -0.199 & -0.045 & 0.169 & 0.33462 & 0.5435 & 0.60761 & 0.22598 & 0.37962 \tabularnewline
midrange & -1.7135 & -1.639 & -1.5695 & -1.544 & -1.419 & -0.9685 & -0.84709 & 0.19597 & 0.1505 \tabularnewline
mode & -5.5344 & -3.7677 & -1.02 & -0.18511 & 0.97694 & 3.0914 & 4.0048 & 2.0158 & 1.9969 \tabularnewline
mode k.dens & -1.332 & -1.0434 & -0.44981 & 0.15961 & 0.75554 & 1.5592 & 1.8615 & 0.80381 & 1.2054 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269186&T=1

[TABLE]
[ROW][C]Estimation Results of Bootstrap[/C][/ROW]
[ROW][C]statistic[/C][C]P1[/C][C]P5[/C][C]Q1[/C][C]Estimate[/C][C]Q3[/C][C]P95[/C][C]P99[/C][C]S.D.[/C][C]IQR[/C][/ROW]
[ROW][C]mean[/C][C]-0.30155[/C][C]-0.20872[/C][C]-0.10952[/C][C]-7.1942e-06[/C][C]0.11718[/C][C]0.24878[/C][C]0.33309[/C][C]0.14916[/C][C]0.2267[/C][/ROW]
[ROW][C]median[/C][C]-0.23157[/C][C]-0.199[/C][C]-0.045[/C][C]0.169[/C][C]0.33462[/C][C]0.5435[/C][C]0.60761[/C][C]0.22598[/C][C]0.37962[/C][/ROW]
[ROW][C]midrange[/C][C]-1.7135[/C][C]-1.639[/C][C]-1.5695[/C][C]-1.544[/C][C]-1.419[/C][C]-0.9685[/C][C]-0.84709[/C][C]0.19597[/C][C]0.1505[/C][/ROW]
[ROW][C]mode[/C][C]-5.5344[/C][C]-3.7677[/C][C]-1.02[/C][C]-0.18511[/C][C]0.97694[/C][C]3.0914[/C][C]4.0048[/C][C]2.0158[/C][C]1.9969[/C][/ROW]
[ROW][C]mode k.dens[/C][C]-1.332[/C][C]-1.0434[/C][C]-0.44981[/C][C]0.15961[/C][C]0.75554[/C][C]1.5592[/C][C]1.8615[/C][C]0.80381[/C][C]1.2054[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269186&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269186&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
statisticP1P5Q1EstimateQ3P95P99S.D.IQR
mean-0.30155-0.20872-0.10952-7.1942e-060.117180.248780.333090.149160.2267
median-0.23157-0.199-0.0450.1690.334620.54350.607610.225980.37962
midrange-1.7135-1.639-1.5695-1.544-1.419-0.9685-0.847090.195970.1505
mode-5.5344-3.7677-1.02-0.185110.976943.09144.00482.01581.9969
mode k.dens-1.332-1.0434-0.449810.159610.755541.55921.86150.803811.2054



Parameters (Session):
par1 = 200 ; par2 = 5 ; par3 = 0 ; par4 = P1 P5 Q1 Q3 P95 P99 ;
Parameters (R input):
par1 = 200 ; par2 = 5 ; par3 = 0 ; par4 = P1 P5 Q1 Q3 P95 P99 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
if (par3 == '0') bw <- NULL
if (par3 != '0') bw <- as.numeric(par3)
if (par1 < 10) par1 = 10
if (par1 > 5000) par1 = 5000
library(modeest)
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
s.mode <- mlv(s[i], method='mfv')$M
s.kernelmode <- mlv(s[i], method='kernel', bw=bw)$M
c(s.mean, s.median, s.midrange, s.mode, s.kernelmode)
}
(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='plot7.png')
plot(r$t[,4],type='p',ylab='simulated values',main='Simulation of Mode')
grid()
dev.off()
bitmap(file='plot8.png')
plot(r$t[,5],type='p',ylab='simulated values',main='Simulation of Mode of Kernel Density')
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()
bitmap(file='plot9.png')
densityplot(~r$t[,4],col='black',main='Density Plot',xlab='mode')
dev.off()
bitmap(file='plot10.png')
densityplot(~r$t[,5],col='black',main='Density Plot',xlab='mode of kernel dens.')
dev.off()
z <- data.frame(cbind(r$t[,1],r$t[,2],r$t[,3],r$t[,4],r$t[,5]))
colnames(z) <- list('mean','median','midrange','mode','mode k.dens')
bitmap(file='plot11.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',10,TRUE)
a<-table.row.end(a)
if (par4 == 'P1 P5 Q1 Q3 P95 P99') {
myq.1 <- 0.01
myq.2 <- 0.05
myq.3 <- 0.95
myq.4 <- 0.99
myl.1 <- 'P1'
myl.2 <- 'P5'
myl.3 <- 'P95'
myl.4 <- 'P99'
}
if (par4 == 'P0.5 P2.5 Q1 Q3 P97.5 P99.5') {
myq.1 <- 0.005
myq.2 <- 0.025
myq.3 <- 0.975
myq.4 <- 0.995
myl.1 <- 'P0.5'
myl.2 <- 'P2.5'
myl.3 <- 'P97.5'
myl.4 <- 'P99.5'
}
if (par4 == 'P10 P20 Q1 Q3 P80 P90') {
myq.1 <- 0.10
myq.2 <- 0.20
myq.3 <- 0.80
myq.4 <- 0.90
myl.1 <- 'P10'
myl.2 <- 'P20'
myl.3 <- 'P80'
myl.4 <- 'P90'
}
a<-table.row.start(a)
a<-table.element(a,'statistic',header=TRUE)
a<-table.element(a,myl.1,header=TRUE)
a<-table.element(a,myl.2,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,myl.3,header=TRUE)
a<-table.element(a,myl.4,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]]
p01 <- quantile(r$t[,1],myq.1)[[1]]
p05 <- quantile(r$t[,1],myq.2)[[1]]
p95 <- quantile(r$t[,1],myq.3)[[1]]
p99 <- quantile(r$t[,1],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[1],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element( a,signif( sqrt(var(r$t[,1])),par2 ) )
a<-table.element(a,signif(q3-q1,par2))
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]]
p01 <- quantile(r$t[,2],myq.1)[[1]]
p05 <- quantile(r$t[,2],myq.2)[[1]]
p95 <- quantile(r$t[,2],myq.3)[[1]]
p99 <- quantile(r$t[,2],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[2],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,2])),par2))
a<-table.element(a,signif(q3-q1,par2))
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]]
p01 <- quantile(r$t[,3],myq.1)[[1]]
p05 <- quantile(r$t[,3],myq.2)[[1]]
p95 <- quantile(r$t[,3],myq.3)[[1]]
p99 <- quantile(r$t[,3],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[3],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,3])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mode',header=TRUE)
q1 <- quantile(r$t[,4],0.25)[[1]]
q3 <- quantile(r$t[,4],0.75)[[1]]
p01 <- quantile(r$t[,4],myq.1)[[1]]
p05 <- quantile(r$t[,4],myq.2)[[1]]
p95 <- quantile(r$t[,4],myq.3)[[1]]
p99 <- quantile(r$t[,4],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[4],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,4])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mode k.dens',header=TRUE)
q1 <- quantile(r$t[,5],0.25)[[1]]
q3 <- quantile(r$t[,5],0.75)[[1]]
p01 <- quantile(r$t[,5],myq.1)[[1]]
p05 <- quantile(r$t[,5],myq.2)[[1]]
p95 <- quantile(r$t[,5],myq.3)[[1]]
p99 <- quantile(r$t[,5],myq.4)[[1]]
a<-table.element(a,signif(p01,par2))
a<-table.element(a,signif(p05,par2))
a<-table.element(a,signif(q1,par2))
a<-table.element(a,signif(r$t0[5],par2))
a<-table.element(a,signif(q3,par2))
a<-table.element(a,signif(p95,par2))
a<-table.element(a,signif(p99,par2))
a<-table.element(a,signif(sqrt(var(r$t[,5])),par2))
a<-table.element(a,signif(q3-q1,par2))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')