R version 2.7.2 (2008-08-25) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(0.987486966,0.991236611,0.985576923,0.975903614,0.969244288,0.964850615,0.952883834,0.949640288,0.954215116,0.939552239,0.948681397,0.966469428,0.96812749,0.98266587,0.977806789,0.96971831,0.982512953,0.989274448,0.995024876,0.995035852,0.988399072,0.997916667,1.001003512,1.012999071,1.014932338,1.017369727,1.018372703,1.016836735,1.016689847,1.008118434,1.005137786,1.010092515,1.013389121,1.012195122,1.015506958,1.016881029,1.012999071,1.012425447,1.012309207,1.006535948,0.997882478,0.999507389,1.003281763,1.007877462,1.007887818,1.00041511,1.00309119,0.997183099,1.004086181,1.000345304,0.997835498,0.993064313,0.991945477,0.966559108,0.979359044,0.983783784,0.986854034,0.978283787,0.968795206,0.964345537,0.960918284) > par3 = '0.005' > par2 = '0.99' > par1 = '0.01' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles Q9' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa, (2007), Harrell-Davis Quantile Estimator (v1.0.11) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_harrell_davies.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: #Hmisc library > #v 1.0.2, 1 sept. 2006: fixed buffer overflow in R interpreter (thanks to John J. Ely, Ph.D.) > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Attaching package: 'Hmisc' The following object(s) are masked from package:base : format.pval, round.POSIXt, trunc.POSIXt, units > myseq <- seq(par1, par2, par3) > hd <- hdquantile(x, probs = myseq, se = TRUE, na.rm = FALSE, names = TRUE, weights=FALSE) > postscript(file="/var/www/html/rcomp/tmp/11rtr1225040030.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(myseq,hd,col=2,main=main,xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Harrell-Davis Quantiles',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'quantiles',header=TRUE) > a<-table.element(a,'value',header=TRUE) > a<-table.element(a,'standard error',header=TRUE) > a<-table.row.end(a) > length(hd) [1] 197 > for (i in 1:length(hd)) + { + a<-table.row.start(a) + a<-table.element(a,as(labels(hd)[i],'numeric'),header=TRUE) + a<-table.element(a,as.matrix(hd[i])[1,1]) + a<-table.element(a,as.matrix(attr(hd,'se')[i])[1,1]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2t79b1225040030.tab") > > system("convert tmp/11rtr1225040030.ps tmp/11rtr1225040030.png") > > > proc.time() user system elapsed 1.646 0.221 2.243