R version 2.6.2 (2008-02-08) 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(6.8400,6.8600,6.8600,6.8400,6.9200,6.9300,6.9700,6.9400,7.0000,6.9200,6.9800,6.9700,6.9700,7.0000,6.9300,6.9400,6.9700,6.9700,6.9400,7.0200,7.0600,7.0200,7.0200,6.9800,6.9600,7.0200,7.0000,7.1300,7.0800,7.1100,7.0600,7.0300,7.1300,7.0900,7.1100,7.0500,7.0600,7.1100,7.0500,7.0600,7.0300,7.0200,7.0900,7.1100,7.1200,7.0300,7.0200,7.1000,7.1300,7.0800,6.9900,7.0400,6.9800,6.9100,6.8700,6.8100,6.8800,6.8200,6.7700,6.7500,6.6800,6.5900,6.6500,6.5600,6.6200,6.5700,6.5500,6.5700,6.5300,6.5700,6.4800,6.4900,6.5300,6.4800,6.4900,6.4800,6.5200,6.4600,6.4600,6.4900,6.5100,6.5100,6.5400,6.5400,6.5300) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > 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/1muc31208808254.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] 9 > 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/2dv891208808254.tab") > > system("convert tmp/1muc31208808254.ps tmp/1muc31208808254.png") > > > proc.time() user system elapsed 1.030 0.186 1.152