R version 2.7.0 (2008-04-22) 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(1.387791741 + ,1.720577617 + ,1.539828431 + ,1.944402133 + ,1.800769231 + ,1.77498253 + ,1.695994278 + ,1.771285476 + ,1.780959752 + ,1.751743375 + ,1.894578313 + ,1.492106696 + ,1.751202749 + ,1.511026616 + ,1.389159562 + ,1.885874649 + ,2.013234078 + ,1.662673392 + ,1.631907308 + ,1.741298213 + ,1.634666667 + ,1.845120226 + ,1.794357832 + ,1.70634355 + ,1.826020015 + ,1.756302521 + ,1.978877888 + ,2.035284683 + ,1.834655278 + ,1.909722222 + ,2.046095955 + ,1.922776911 + ,1.66959707 + ,1.832018927 + ,1.792428198 + ,1.787628866 + ,1.784637473 + ,1.794059406 + ,1.752317881 + ,2.08244898 + ,1.719720989 + ,1.839096683 + ,1.932189542 + ,2.086828116 + ,2.148805879 + ,1.776693106 + ,1.880355277 + ,1.714375788 + ,1.848582474 + ,1.962998558 + ,1.790666667 + ,1.7710508 + ,2.089115646 + ,1.832341806 + ,1.912040375 + ,2.003768844 + ,1.814977974 + ,1.832591769 + ,1.973126615 + ,1.709591945 + ,1.950172669 + ,1.831730769 + ,1.848971722 + ,2.089774078 + ,2.077310924 + ,1.845906902 + ,1.886580573 + ,1.974063401 + ,1.705836576 + ,2.002685285 + ,2.20196281 + ,2.330452128 + ,2.081586402 + ,2.433727442 + ,1.871274572 + ,2.221701273 + ,2.115789474 + ,2.057647059 + ,2.07340824 + ,1.903479974 + ,1.956199877 + ,1.951916829 + ,2.126450825 + ,1.980302035 + ,1.830042313 + ,1.929081913 + ,1.777289837 + ,2.299484915 + ,2.026962728 + ,2.106852497 + ,2.044065387 + ,1.865942029 + ,1.767965895 + ,2.045211184 + ,1.897535668 + ,1.800469484 + ,2.106918239) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '0.005' > par2 = '0.99' > par1 = '0.01' > ylab = '' > xlab = '' > main = '' > #'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/1f6ed1225138186.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/2u3nx1225138186.tab") > > system("convert tmp/1f6ed1225138186.ps tmp/1f6ed1225138186.png") > > > proc.time() user system elapsed 3.833 0.615 4.413