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.117354396717212 + ,0.118845681032272 + ,0.112391885267935 + ,0.111306414892192 + ,0.111557866161293 + ,0.115874513020299 + ,0.120518600028397 + ,0.127937652516104 + ,0.11613316666403 + ,0.109945475878252 + ,0.116553866162416 + ,0.116068157652546 + ,0.113370026071156 + ,0.123182199760877 + ,0.111632647202366 + ,0.109758101752217 + ,0.105238647621144 + ,0.110567657536647 + ,0.109445829081846 + ,0.115565377944385 + ,0.109040168162481 + ,0.118699838338174 + ,0.115706070657763 + ,0.103330532839008 + ,0.114086556139986 + ,0.111186708004422 + ,0.108409409523554 + ,0.101131998751098 + ,0.101340239460215 + ,0.101132392401369 + ,0.103330089281936 + ,0.112997274264224 + ,0.101388063209412 + ,0.0954252014189293 + ,0.111307936120104 + ,0.108517581966327 + ,0.113117723156533 + ,0.12234246171967 + ,0.116281802327739 + ,0.092816312987346 + ,0.0954083259281368 + ,0.0983760049075001 + ,0.100589152001216 + ,0.104522549361392 + ,0.0998363447670241 + ,0.0959721467215449 + ,0.097031371532279 + ,0.093072585629373 + ,0.100082898456186 + ,0.100416078984485 + ,0.10057893372505 + ,0.0940357410855729 + ,0.0902738332694873 + ,0.0956823578799632 + ,0.103656114777059 + ,0.111759459418603 + ,0.10108471855862 + ,0.0980399013830847 + ,0.0975611265478894 + ,0.0955190702462385) > 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/12v441224849286.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/2v7xh1224849286.tab") > > system("convert tmp/12v441224849286.ps tmp/12v441224849286.png") > > > proc.time() user system elapsed 1.630 0.203 1.746