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(-1.563895,-1.571395,-1.575945,-1.576615,-2.070195,-1.583195,-1.574525,-1.557275,-1.537985,-1.524965,-1.517515,-1.524375,-1.527505,-1.535495,-1.521665,-1.521325,-1.498565,-1.497645,-1.493295,-1.496865,-1.503905,-1.504655,-1.499805,-1.495325,-1.474585,-1.467225,-1.456545,-1.476975,-1.471875,-1.508455,-1.516745,-1.510405,-1.520065,-1.520465,-1.535815,-1.522035,-1.543145,-1.566095,-1.565355,-1.558975,-1.538025,-1.524515,-1.530835,-1.538875,-1.531395,-1.520755,-1.492575,-1.510995,-1.517825,-1.530015,-1.526665,-1.534165,-1.530405,-1.539745,-1.539835,-1.537125,-1.541595,-1.537225,-1.535165,-1.538275,-1.533015,-1.544625,-1.549345,-1.549765,-1.542695,-1.543035,-1.550475,-1.570405,-1.578585,-1.586855,-1.587825,-1.593635,-1.621685,-1.622795,-1.601785,-1.627755,-1.638835,-1.648275,-1.651895,-1.630235,-1.628225,-1.644055,-1.609135,-1.608155,-1.542645) > 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) 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/1xzp11256071432.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/2f2tv1256071433.tab") > > system("convert tmp/1xzp11256071432.ps tmp/1xzp11256071432.png") > > > proc.time() user system elapsed 1.147 0.199 1.213