Home » date » 2009 » Oct » 19 »

*The author of this computation has been verified*
R Software Module: rwasp_percentiles.wasp (opens new window with default values)
Title produced by software: Percentiles
Date of computation: Mon, 19 Oct 2009 12:05:01 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Oct/19/t1255975695xnxktr79x8d0j9y.htm/, Retrieved Mon, 19 Oct 2009 20:08:17 +0200
 
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/2009/Oct/19/t1255975695xnxktr79x8d0j9y.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1027387 1032760 1026564 1031480 1039048 1029781 1036585 1039113 1038981 1048472 1050976 1058369 1063014 1069895 1068642 1068381 1071410 1075303 1074652 1076742 1058112 1070165 1082079 1089077 1089392 1089298 1091254 1095112 1094153 1098756 1101085 1103418 1099897 1098269 1095835 1105013 1099386 1108399 1106298 1110539 1111430 1111951 1115406 1116142 1120071 1114196 1120541 1123962 1123389 1120435 1116495 1110012 1106820 1104494 1103760 1091570 1048367 1061626 1047607 1023650 1001154 993397 977486 971751 961207 957734 966893 974422
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Percentiles - Ungrouped Data
pWeighted Average at XnpWeighted Average at X(n+1)pEmpirical Distribution FunctionEmpirical Distribution Function - AveragingEmpirical Distribution Function - InterpolationClosest ObservationTrue Basic - Statistics Graphics ToolkitMS Excel (old versions)
0.02958984.28959053.74961207961207963140.24957734959887.26957734
0.04965300.92965528.36966893966893970196.44966893962571.64966893
0.06971964.68972124.94974422974422974483.28971751974048.06971751
0.08975770.16976015.28977486977486983213.96974422975892.72977486
0.1990214.8991805.9993397993397998826.9993397979077.1993397
0.121004753.361007452.88102365010236501023766.5610011541017351.121001154
0.141025165.281025573.24102656410265641026876.7410265641024640.761026564
0.161027288.241027482.76102738710273871029110.6810273871029685.241027387
0.181030188.761030494.58103148010314801031556.810297811030766.421029781
0.210322481032504103276010327601034290103276010317361032760
0.2210364321037016.28103658510365851038358.0410365851038549.721036585
0.241039002.441039018.52103904810390481039053.210389811039010.481039048
0.261039092.21039109.1103911310391131042680.4810391131039051.91039113
0.281047637.41047850.2104836710483671048184.610476071048123.81047607
0.310484091048440.5104847210484721048722.410483671048398.51048472
0.321050375.041051546.88105097610509761054115.8410509761057541.121050976
0.341058142.841058230.22105836910583691058312.4610581121058250.781058112
0.361059932.361061104.88106162610616261061792.5610583691058890.121061626
0.381062791.921064194.74106301410630141065482.8210630141067200.261063014
0.41068433.21068537.6106864210686421068589.810683811068485.41068642
0.421069343.681069869.94106989510698951069932.810698951068667.061069895
0.441070143.41070613.2107016510701651070762.610701651070961.81070165
0.461072317.761073809.08107465210746521074068.4410714101072252.921074652
0.481075068.641075475.68107530310753031075533.2410753031076569.321075303
0.510767421079410.510767421079410.51079410.510767421079410.51079410.5
0.521084598.281088237.24108907710890771087957.3210820791082918.761089077
0.541089236.121089322.44108929810892981089314.9210892981089367.561089298
0.561089540.961090583.68109125410912541090360.2410893921090062.321091254
0.581091393.041091621.66109157010915701091525.7610912541094101.341091570
0.61093636.41094536.6109415310941531094344.810941531094728.41094153
0.621095227.681095675.94109583510958351095502.4210951121095271.061095835
0.641097100.681098346.92109826910982691097976.9210982691098678.081098269
0.661098697.561099096.2109875610987561098894.610987561099045.81099386
0.681099508.641099856.12109989710998971099672.1610993861099426.881099897
0.71100609.81101784.9110108511010851100966.211010851102718.11101085
0.721103324.681103650.56110341811034181103500.0811034181103527.441103760
0.741103994.881104525.14110449411044941104185.7211037601104981.861104494
0.761104846.921105578.4110501311050131104971.4811050131105732.61105013
0.781106318.881106726.04110682011068201106433.7211062981106391.961106820
0.81107451.61108721.6110839911083991107767.411068201109689.41108399
0.821109624.881110317.66111001211100121109915.2211100121110233.341110539
0.841110645.921111394.36111143011114301110788.4811105391110574.641111430
0.861111680.081112714.3111195111119511111753.0211114301113432.71111951
0.881113836.81115067.2111419611141961114106.211141961114534.81115406
0.91115553.21116177.3111614211161421115626.811154061116459.71116142
0.921116339.681118211.48111649511164951116367.9211164951118354.521116495
0.941119784.921120384.04112007111200711119999.4811200711120121.961120435
0.961120464.681121224.52112054111205411120468.9211204351122705.481120541
0.981122363.721123744.26112338911233891122420.6811233891123606.741123962
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Oct/19/t1255975695xnxktr79x8d0j9y/1s8a21255975500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Oct/19/t1255975695xnxktr79x8d0j9y/1s8a21255975500.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
 
R code (references can be found in the software module):
x <-sort(x[!is.na(x)])
q1 <- function(data,n,p,i,f) {
np <- n*p;
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q2 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q3 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
q4 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- (data[i]+data[i+1])/2
} else {
qvalue <- data[i+1]
}
}
q5 <- function(data,n,p,i,f) {
np <- (n-1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i+1]
} else {
qvalue <- data[i+1] + f*(data[i+2]-data[i+1])
}
}
q6 <- function(data,n,p,i,f) {
np <- n*p+0.5
i <<- floor(np)
f <<- np - i
qvalue <- data[i]
}
q7 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- f*data[i] + (1-f)*data[i+1]
}
}
q8 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
if (f == 0.5) {
qvalue <- (data[i]+data[i+1])/2
} else {
if (f < 0.5) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
}
}
lx <- length(x)
qval <- array(NA,dim=c(99,8))
mystep <- 25
mystart <- 25
if (lx>10){
mystep=10
mystart=10
}
if (lx>20){
mystep=5
mystart=5
}
if (lx>50){
mystep=2
mystart=2
}
if (lx>=100){
mystep=1
mystart=1
}
for (perc in seq(mystart,99,mystep)) {
qval[perc,1] <- q1(x,lx,perc/100,i,f)
qval[perc,2] <- q2(x,lx,perc/100,i,f)
qval[perc,3] <- q3(x,lx,perc/100,i,f)
qval[perc,4] <- q4(x,lx,perc/100,i,f)
qval[perc,5] <- q5(x,lx,perc/100,i,f)
qval[perc,6] <- q6(x,lx,perc/100,i,f)
qval[perc,7] <- q7(x,lx,perc/100,i,f)
qval[perc,8] <- q8(x,lx,perc/100,i,f)
}
bitmap(file='test1.png')
myqqnorm <- qqnorm(x,col=2)
qqline(x)
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Percentiles - Ungrouped Data',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p',1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_1.htm', 'Weighted Average at Xnp',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_2.htm','Weighted Average at X(n+1)p',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_3.htm','Empirical Distribution Function',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_4.htm','Empirical Distribution Function - Averaging',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_5.htm','Empirical Distribution Function - Interpolation',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_6.htm','Closest Observation',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_7.htm','True Basic - Statistics Graphics Toolkit',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_8.htm','MS Excel (old versions)',''),1,TRUE)
a<-table.row.end(a)
for (perc in seq(mystart,99,mystep)) {
a<-table.row.start(a)
a<-table.element(a,round(perc/100,2),1,TRUE)
for (j in 1:8) {
a<-table.element(a,round(qval[perc,j],6))
}
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