R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(3.88 + ,3.98 + ,3.29 + ,2.88 + ,3.22 + ,3.62 + ,3.82 + ,3.54 + ,2.53 + ,2.22 + ,2.85 + ,2.78 + ,2.28 + ,2.26 + ,2.71 + ,2.77 + ,2.77 + ,2.64 + ,2.56 + ,2.07 + ,2.32 + ,2.16 + ,2.23 + ,2.4 + ,2.84 + ,2.77 + ,2.93 + ,2.91 + ,2.69 + ,2.38 + ,2.58 + ,3.19 + ,2.82 + ,2.72 + ,2.53 + ,2.7 + ,2.42 + ,2.5 + ,2.31 + ,2.41 + ,2.56 + ,2.76 + ,2.71 + ,2.44 + ,2.46 + ,2.12 + ,1.99 + ,1.86 + ,1.88 + ,1.82 + ,1.74 + ,1.71 + ,1.38 + ,1.27 + ,1.19 + ,1.28 + ,1.19 + ,1.22 + ,1.47 + ,1.46 + ,1.96 + ,1.88 + ,2.03 + ,2.04 + ,1.9 + ,1.8 + ,1.92 + ,1.92 + ,1.97 + ,2.46 + ,2.36 + ,2.53 + ,2.31 + ,1.98 + ,1.46 + ,1.26 + ,1.58 + ,1.74 + ,1.89 + ,1.85 + ,1.62 + ,1.3 + ,1.42 + ,1.15 + ,0.42 + ,0.74 + ,1.02 + ,1.51 + ,1.86 + ,1.59 + ,1.03 + ,0.44 + ,0.82 + ,0.86 + ,0.58 + ,0.59 + ,0.95 + ,0.98 + ,1.23 + ,1.17 + ,0.84 + ,0.74 + ,0.65 + ,0.91 + ,1.19 + ,1.3 + ,1.53 + ,1.94 + ,1.79 + ,1.95 + ,2.26 + ,2.04 + ,2.16 + ,2.75 + ,2.79 + ,2.88 + ,3.36 + ,2.97 + ,3.1 + ,2.49 + ,2.2 + ,2.25 + ,2.09 + ,2.79 + ,3.14 + ,2.93 + ,2.65 + ,2.67 + ,2.26 + ,2.35 + ,2.13 + ,2.18 + ,2.9 + ,2.63 + ,2.67 + ,1.81 + ,1.33 + ,0.88 + ,1.28 + ,1.26 + ,1.26 + ,1.29 + ,1.1 + ,1.37 + ,1.21 + ,1.74 + ,1.76 + ,1.48 + ,1.04 + ,1.62 + ,1.49 + ,1.79 + ,1.8 + ,1.58 + ,1.86 + ,1.74 + ,1.59 + ,1.26 + ,1.13 + ,1.92 + ,2.61 + ,2.26 + ,2.41 + ,2.26 + ,2.03 + ,2.86 + ,2.55 + ,2.27 + ,2.26 + ,2.57 + ,3.07 + ,2.76 + ,2.51 + ,2.87 + ,3.14 + ,3.11 + ,3.16 + ,2.47 + ,2.57 + ,2.89 + ,2.63 + ,2.38 + ,1.69 + ,1.96 + ,2.19 + ,1.87 + ,1.6 + ,1.63 + ,1.22 + ,1.21 + ,1.49 + ,1.64 + ,1.66 + ,1.77 + ,1.82 + ,1.78 + ,1.28 + ,1.29 + ,1.37 + ,1.12 + ,1.51 + ,2.24 + ,2.94 + ,3.09 + ,3.46 + ,3.64 + ,4.39 + ,4.15 + ,5.21 + ,5.8 + ,5.91 + ,5.39 + ,5.46 + ,4.72 + ,3.14 + ,2.63 + ,2.32 + ,1.93 + ,0.62 + ,0.6 + ,-0.37 + ,-1.1 + ,-1.68 + ,-0.78) > 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: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from package:survival : untangle.specials 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/1idd11255689183.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] 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/rcomp/tmp/27rgr1255689183.tab") > > system("convert tmp/1idd11255689183.ps tmp/1idd11255689183.png") > > > proc.time() user system elapsed 0.901 0.215 1.029