R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(65.71,-27.32,29.08,-21.67,-22.21,44.66,39.69,-6.17,-11,-27.51,41.29,-12.08,26.99,-21.61,-9.88,2.08,-5.8,-26.59,34.86,-7.93,-19.97,-8.17,-10.89,-5.53,-15.25,-4.17,-10.46,-24.3,-22.45,4.48,-17.93,-12.1,21.72,12.68,-10,-0.38,21.67,-10.8,-5.14,-12.99,-23.95,37.27,-14.95,-2.2,-21.16,-23.5,-12.15,12.29,-18.66,9.65,-13.35,-5.58,19.31,-4.33,-20.35,-6.53,3.21,36.79,-17.35,-17.28,17.25,-17.95,1.02,-0.86,9.77,38.55,-18.11,-11.61,-2.32,-27.26,25.48,2.95,-11.26,2.19,-25.17,-14.12,-16.68,9.98,26.12,41.08,9.97,28.32,41.02,-32.17,-11.77,9.18,22.37,6.95,-9.92,17.2,-6.75,21.11,24.07,-10.9,-18.73,34.23,-12.45,-32.85,-3.2,28.14,-13.98,-24.53,59.76,20.65,-13.65,17.89,-4.25,-24.16,33.26,-22.66,10.53,-9.99,13.69,-11.26,-22.02,-7.63,-6.27) > par3 = '0.001' > par2 = '0.999' > par1 = '0.001' > 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_davis.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/1yque1200396348.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 > 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] 999 > 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/2z3ip1200396348.tab") > > system("convert tmp/1yque1200396348.ps tmp/1yque1200396348.png") > > > proc.time() user system elapsed 16.912 0.369 17.059