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.076904412 + ,0.114909836 + ,0.064628931 + ,0.103260606 + ,0.093753165 + ,0.098798611 + ,0.08698 + ,0.083630872 + ,0.084392857 + ,0.102034965 + ,0.074606452 + ,0.083621795 + ,0.091568493 + ,0.109784 + ,0.065912162 + ,0.074264151 + ,0.09197973 + ,0.110705426 + ,0.094818182 + ,0.12543662 + ,0.10672956 + ,0.121045752 + ,0.118974194 + ,0.130278146 + ,0.116473333 + ,0.154041322 + ,0.098689873 + ,0.099112426 + ,0.148178808 + ,0.143445255 + ,0.126452703 + ,0.119197279 + ,0.08504375 + ,0.093785714 + ,0.108106667 + ,0.088258065 + ,0.102907285 + ,0.144897436 + ,0.085711656 + ,0.110682635 + ,0.120613333 + ,0.104100671 + ,0.105931507 + ,0.095941176 + ,0.092871508 + ,0.120262195 + ,0.108668831 + ,0.098435754 + ,0.127031447 + ,0.126208633 + ,0.078674157 + ,0.081206704 + ,0.100051724 + ,0.101473054 + ,0.096325 + ,0.089295181 + ,0.085450262 + ,0.103219101 + ,0.104476744 + ,0.111086022 + ,0.121705521 + ,0.106072848 + ,0.086473958 + ,0.11039548 + ,0.104287958 + ,0.104522222 + ,0.134028571 + ,0.09961236 + ,0.081478673 + ,0.130284884 + ,0.093628866 + ,0.109661616 + ,0.103596591 + ,0.124845679 + ,0.102102564 + ,0.096482412 + ,0.10842 + ,0.116387283 + ,0.094751323 + ,0.099768817 + ,0.096915888 + ,0.136333333 + ,0.092787879 + ,0.086783654 + ,0.091107143 + ,0.127118644 + ,0.098974747 + ,0.085171171 + ,0.116217391 + ,0.117432584 + ,0.07609589 + ,0.081606335 + ,0.081908676 + ,0.063353191 + ,0.073571429 + ,0.060884444 + ,0.064803571) > par3 = '0.005' > 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/rcomp/tmp/1n5bn1225108048.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/2vwpj1225108048.tab") > > system("convert tmp/1n5bn1225108048.ps tmp/1n5bn1225108048.png") > > > proc.time() user system elapsed 1.738 0.226 1.823