R version 2.8.0 (2008-10-20) 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.477269891 + ,0.478410492 + ,0.504316364 + ,0.506990676 + ,0.500622376 + ,0.497114437 + ,0.489770935 + ,0.50032426 + ,0.496225333 + ,0.487762793 + ,0.472753331 + ,0.501663748 + ,0.479368898 + ,0.476033445 + ,0.486479244 + ,0.501023137 + ,0.48446665 + ,0.486717446 + ,0.482483391 + ,0.483640092 + ,0.480041869 + ,0.481223922 + ,0.468463974 + ,0.501452361 + ,0.475514958 + ,0.480470499 + ,0.484596338 + ,0.51612149 + ,0.49487311 + ,0.49206278 + ,0.489188671 + ,0.484279009 + ,0.477914997 + ,0.478499046 + ,0.472352468 + ,0.503272274 + ,0.473015832 + ,0.483269951 + ,0.484650263 + ,0.500445401 + ,0.49263478 + ,0.488934448 + ,0.489865057 + ,0.484365113 + ,0.480927311 + ,0.495142257 + ,0.47672132 + ,0.509407461 + ,0.48267775 + ,0.482611377 + ,0.488165194 + ,0.502454309 + ,0.494830217 + ,0.496604793 + ,0.491006409 + ,0.486326477 + ,0.489553425 + ,0.496401806 + ,0.4807411 + ,0.509049524 + ,0.485714056 + ,0.485835226 + ,0.49727307 + ,0.513230783 + ,0.508231932 + ,0.500341985 + ,0.504904575 + ,0.498470877 + ,0.490171652 + ,0.489131192 + ,0.482692545 + ,0.511044702 + ,0.488010816 + ,0.491555299 + ,0.493155728 + ,0.503378881 + ,0.49618093 + ,0.493214336 + ,0.48908809 + ,0.492917878 + ,0.496698074 + ,0.488400632 + ,0.494690964 + ,0.500762843 + ,0.492406698 + ,0.497969393 + ,0.506544509 + ,0.522583929 + ,0.522288862 + ,0.511579477 + ,0.518798333 + ,0.516002006 + ,0.518942733 + ,0.509925739) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles' > #'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/freestat/rcomp/tmp/1bito1229914207.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/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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] 99 > 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/freestat/rcomp/tmp/26pvd1229914207.tab") > > system("convert tmp/1bito1229914207.ps tmp/1bito1229914207.png") > > > proc.time() user system elapsed 1.298 0.281 1.601