| Blocked Bootstrap Plot Goudkoers Brussel | *Unverified author* | R Software Module: /rwasp_bootstrapplot1.wasp (opens new window with default values) | Title produced by software: Bootstrap Plot - Central Tendency | Date of computation: Thu, 19 May 2011 05:02:35 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf.htm/, Retrieved Thu, 19 May 2011 06:59:22 +0200 | | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | KEYWORD: KDGP2W22 | | Dataseries X: | » Textbox « » Textfile « » CSV « | 32819
32700
32242
32810
33865
32226
31077
31293
30236
30160
32436
30695
27525
26434
25739
25204
24977
24320
22680
22052
21467
21383
21777
21928
21814
22937
23595
20830
19650
19195
19644
18483
18079
19178
18391
18441
18584
20108
20148
19394
17745
17696
17032
16438
15683
15594
15713
15937
16171
15928
16348
15579
15305
15648
14954
15137
15839
16050
15168
17064
16005
14886
14931
14544
13812
13031
12574
11964
11451
11346
11353
10702
10646
10556
10463
10407
10625
10872
10805
10653
10574
10431
10383
10296
10872
10635
10297
10570
10662
10709
10413
10846
10371
9924
9828
| | Output produced by software: |
Estimation Results of Bootstrap | statistic | Q1 | Estimate | Q3 | S.D. | IQR | mean | 17277.6368421053 | 17957.7052631579 | 18183.6368421053 | 606.750997457253 | 906 | median | 15839 | 16050 | 16303.75 | 623.616026878392 | 464.75 | midrange | 21323.5 | 21846.5 | 21846.5 | 273.206160663499 | 523 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/1zayn1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/1zayn1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/25s8w1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/25s8w1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/3teww1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/3teww1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/4gq8z1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/4gq8z1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/5gzcp1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/5gzcp1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/6voax1305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/6voax1305781352.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/78dx41305781352.png (open in new window) | http://www.freestatistics.org/blog/date/2011/May/19/t1305781156xw5y33o97pic6uf/78dx41305781352.ps (open in new window) |
| | 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')
| |
Copyright
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Software written by Ed van Stee & Patrick Wessa
Disclaimer
Information provided on this web site is provided
"AS IS" without warranty of any kind, either express or implied,
including, without limitation, warranties of merchantability, fitness
for a particular purpose, and noninfringement. We use reasonable
efforts to include accurate and timely information and periodically
update the information, and software without notice. However, we make
no warranties or representations as to the accuracy or
completeness of such information (or software), and we assume no
liability or responsibility for errors or omissions in the content of
this web site, or any software bugs in online applications. Your use of
this web site is AT YOUR OWN RISK. Under no circumstances and under no
legal theory shall we be liable to you or any other person
for any direct, indirect, special, incidental, exemplary, or
consequential damages arising from your access to, or use of, this web
site.
Privacy Policy
We may request personal information to be submitted to our servers in order to be able to:
- personalize online software applications according to your needs
- enforce strict security rules with respect to the data that you upload (e.g. statistical data)
- manage user sessions of online applications
- alert you about important changes or upgrades in resources or applications
We NEVER allow other companies to directly offer registered users
information about their products and services. Banner references and
hyperlinks of third parties NEVER contain any personal data of the
visitor.
We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.
We carefully protect your data from loss, misuse, alteration,
and destruction. However, at any time, and under any circumstance you
are solely responsible for managing your passwords, and keeping them
secret.
We store a unique ANONYMOUS USER ID in the form of a small
'Cookie' on your computer. This allows us to track your progress when
using this website which is necessary to create state-dependent
features. The cookie is used for NO OTHER PURPOSE. At any time you may
opt to disallow cookies from this website - this will not affect other
features of this website.
We examine cookies that are used by third-parties (banner and
online ads) very closely: abuse from third-parties automatically
results in termination of the advertising contract without refund. We
have very good reason to believe that the cookies that are produced by
third parties (banner ads) do NOT cause any privacy or security risk.
FreeStatistics.org is safe. There is no need to download any
software to use the applications and services contained in this
website. Hence, your system's security is not compromised by their use,
and your personal data - other than data you submit in the account
application form, and the user-agent information that is transmitted by
your browser - is never transmitted to our servers.
As a general rule, we do not log on-line behavior of
individuals (other than normal logging of webserver 'hits'). However,
in cases of abuse, hacking, unauthorized access, Denial of Service
attacks, illegal copying, hotlinking, non-compliance with international
webstandards (such as robots.txt), or any other harmful behavior, our
system engineers are empowered to log, track, identify, publish, and
ban misbehaving individuals - even if this leads to ban entire blocks
of IP addresses, or disclosing user's identity.
FreeStatistics.org is powered by
|