Home » date » 2010 » Dec » 19 »

Kijkcijfers- mean,midrange,median

*The author of this computation has been verified*
R Software Module: /rwasp_bootstrapplot1.wasp (opens new window with default values)
Title produced by software: Bootstrap Plot - Central Tendency
Date of computation: Sun, 19 Dec 2010 16:42:19 +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/Dec/19/t1292777644xjlw1vlg2r8anht.htm/, Retrieved Sun, 19 Dec 2010 17:56:17 +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/Dec/19/t1292777644xjlw1vlg2r8anht.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 «
15561600 14917500 14805920 16958000 17605000 17131200 18474600 17286700 18574400 18056000 19701600 19061700 19681900 34521200 19922700 20177900 19759900 23076700 22532000 22029400 22587000 23256600 22680300 21916400 19640200 18813100 18730000 18154700 17848800 18077500 17133100 16602600 15878900 15789100 15422000 14661400 15879200 14339300 13169600 14528900 13375800 12309900 11933900 10061900 12609600 11156500 12187200 11284300 10177000 10970720 10820680 11492390 14573750 13992820 14727070 15685360 16736210 17950180 17002730 17415160 17929810 17865790 19202360 19085000 18188880 18466410 18520400 20025500 20636100 20672000 22589100 21864800 22750100 22548746 21325495 21556563 21415269 20401054 19062253 19085706 19279967 18552045 17800733 17142490 17593173 17633859 17336613 17008347 17951965 14520929 16941217 15436824 14744261 14248004 11540953 12881661 15185757 13554339 13575106 12238400 13303614 14151478 1417 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimation Results of Bootstrap
statisticQ1EstimateQ3S.D.IQR
mean16917148.329326917167453.7517393159.53125371790.215184187476011.201923076
median1713310017375886.517619429.5402353.721319155486329.5
midrange1671680022291550222915502691184.46978625574750
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/1c2031292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/1c2031292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/2c2031292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/2c2031292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/3ntio1292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/3ntio1292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/4ntio1292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/4ntio1292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/5ntio1292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/5ntio1292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/6ntio1292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/6ntio1292776933.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/7fkzr1292776933.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292777644xjlw1vlg2r8anht/7fkzr1292776933.ps (open in new window)


 
Parameters (Session):
par1 = 500 ;
 
Parameters (R input):
par1 = 500 ;
 
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

Creative Commons License

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