| | *The author of this computation has been verified* | R Software Module: /rwasp_bootstrapplot.wasp (opens new window with default values) | Title produced by software: Blocked Bootstrap Plot - Central Tendency | Date of computation: Fri, 26 Nov 2010 14:36:57 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c.htm/, Retrieved Fri, 26 Nov 2010 15:35:53 +0100 | | BibTeX entries for LaTeX users: | @Manual{KEY,
author = {{YOUR NAME}},
publisher = {Office for Research Development and Education},
title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c.htm/},
year = {2010},
}
@Manual{R,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2010},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org},
}
| | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | | | Dataseries X: | » Textbox « » Textfile « » CSV « | 14.267
472.071
12.335
16.434
10.132
37.190
27.169
21.389
17.416
9.862
8.326
17.578
26.242
20.290
8.089
24.421
9.155
18.061
14.693
8.034
19.516
33.256
17.737
8.886
12.187
18.837
12.341
21.003
18.421
14.225
10.730
14.558
20.347
16.235
39.199
33.492
79.503
21.210
15.907
16.399
7.887
19.976
23.664
12.518
2.385
20.643
16.756
8.932
36.014
10.815
26.268
8.534
14.107
19.193
9.594
18.053
15.805
9.578
8.321
33.400
11.547
12.677
14.138
10.545
10.982
40.070
7.399
10.250
23.433
15.080
29.558
23.587
2.093
39.654
8.285
8.931
34.526
35.350
6.566
10.244
11.090
8.969
12.206
17.525
12.953
18.466
15.110
12.575
24.394
4.401
31.119
11.201
14.781
38.557
29.500
21.700
10.934
4.893
13.080
4.721
18.021
14.916
13.534
8.747
12.229
28.129
9.647
5.915
9.435
9.280
11.673
7.538
23.025
5.837
13.894
19.563
6.356
9.460
9.300
12.637
7.587
18.662
15.058
92.704
13.784
10.937
15.290
20.969
32.207
14.050
8.048
7.049
22 etc... | | Output produced by software: |
Estimation Results of Blocked Bootstrap | statistic | Q1 | Estimate | Q3 | S.D. | IQR | mean | 20.8431801948052 | 23.5114253246753 | 25.6302978896104 | 3.3060914148926 | 4.78711769480519 | median | 13.697 | 13.99 | 14.452 | 0.678451483750021 | 0.755000000000001 | midrange | 237.0605 | 499.525 | 499.525 | 156.589005892367 | 262.4645 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/1gmz31290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/1gmz31290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/2gmz31290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/2gmz31290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/3gmz31290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/3gmz31290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/4gmz31290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/4gmz31290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/59dy61290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/59dy61290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/69dy61290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/69dy61290782211.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/79dy61290782211.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Nov/26/t1290782150umkutwock24j10c/79dy61290782211.ps (open in new window) |
| | Parameters (Session): | par1 = 500 ; par2 = 12 ; | | Parameters (R input): | par1 = 500 ; 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')
| |
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
|