R version 2.8.0 (2008-10-20) 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.18,-1.28,-1.38,-1.48,-1.58,-1.58,-1.08,-0.58,-0.48,-0.48,-0.48,-0.28,-0.08,-0.08,-0.08,-0.18,-0.18,-0.08,0.42,1.12,1.32,1.42,1.42,1.52,1.62,1.62,1.52,1.42,1.32,1.22,1.52,2.12,2.12,2.02,1.82,1.72,1.72,1.62,1.42,1.22,1.02,0.92,1.42,1.92,2.12,2.02,1.92,1.82,1.92,1.82,1.62,1.42,1.12,0.92,1.22,1.72,1.72,1.52,1.32,1.22,1.12,1.12,0.92,0.72,0.62,0.62,1.02,1.62,1.72,1.52,1.32,1.32,1.42,1.32,1.22,1.12,0.92,0.82,1.12,1.72,1.82,1.52,1.12,1.02,1.02,0.92,0.82,0.62,0.42,0.22,0.42,0.62,0.32,0.02,-0.28,-0.38,-0.58,-0.88,-1.28,-1.38,-1.68,-1.78,-1.28,-0.78,-0.98,-1.08,-1.28,-1.48,-1.78,-1.98,-1.98,-1.78,-1.78,-2.08,-1.88,-1.68,-1.28,-0.58,-0.58,-0.48,-0.48,-0.68,-0.78,-0.98,-1.18,-1.28,-0.58,-0.48,-0.28,-0.08,0.02,0.12,0.22,0.12,-0.08,-0.18,-0.48,-0.48,0.22,0.32,0.32,0.32,0.32,0.52,0.82,0.72,0.22,-0.58,-0.88,-0.68,0.72,1.22,1.22,0.62,0.12,0.22,0.42,0.52,0.42,0.12,0.02,-0.18,0.52,0.62,0.62,0.42,0.32,0.42,0.62,0.62,0.52,0.42,0.22,-0.08,0.12,0.02,0.02,-0.08,-0.18,-0.18) > 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/freestat/rcomp/tmp/10n831257763063.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/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2v83l1257763063.tab") > > system("convert tmp/10n831257763063.ps tmp/10n831257763063.png") > > > proc.time() user system elapsed 2.028 0.295 2.156