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.522730109 + ,0.521589508 + ,0.495683636 + ,0.493009324 + ,0.499377624 + ,0.502885563 + ,0.510229065 + ,0.49967574 + ,0.503774667 + ,0.512237207 + ,0.527246669 + ,0.498336252 + ,0.520631102 + ,0.523966555 + ,0.513520756 + ,0.498976863 + ,0.51553335 + ,0.513282554 + ,0.517516609 + ,0.516359908 + ,0.519958131 + ,0.518776078 + ,0.531536026 + ,0.498547639 + ,0.524485042 + ,0.519529501 + ,0.515403662 + ,0.48387851 + ,0.50512689 + ,0.50793722 + ,0.510811329 + ,0.515720991 + ,0.522085003 + ,0.521500954 + ,0.527647532 + ,0.496727726 + ,0.526984168 + ,0.516730049 + ,0.515349737 + ,0.499554599 + ,0.50736522 + ,0.511065552 + ,0.510134943 + ,0.515634887 + ,0.519072689 + ,0.504857743 + ,0.52327868 + ,0.490592539 + ,0.51732225 + ,0.517388623 + ,0.511834806 + ,0.497545691 + ,0.505169783 + ,0.503395207 + ,0.508993591 + ,0.513673523 + ,0.510446575 + ,0.503598194 + ,0.5192589 + ,0.490950476 + ,0.514285944 + ,0.514164774 + ,0.50272693 + ,0.486769217 + ,0.491768068 + ,0.499658015 + ,0.495095425 + ,0.501529123 + ,0.509828348 + ,0.510868808 + ,0.517307455 + ,0.488955298 + ,0.511989184 + ,0.508444701 + ,0.506844272 + ,0.496621119 + ,0.50381907 + ,0.506785664 + ,0.51091191 + ,0.507082122 + ,0.503301926 + ,0.511599368 + ,0.505309036 + ,0.499237157 + ,0.507593302 + ,0.502030607 + ,0.493455491 + ,0.477416071 + ,0.477711138 + ,0.488420523 + ,0.481201667 + ,0.483997994 + ,0.481057267 + ,0.490074261) > 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/1wfs51225140357.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/299t41225140357.tab") > > system("convert tmp/1wfs51225140357.ps tmp/1wfs51225140357.png") > > > proc.time() user system elapsed 1.533 0.281 1.591