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(0.399934319,0.402094483,0.413840465,0.41769597,0.421773812,0.421728159,0.420448844,0.418168871,0.41394247,0.419491756,0.418931641,0.431121329,0.437504246,0.436747812,0.434770429,0.430466243,0.429993174,0.434192053,0.437475305,0.449428904,0.456433147,0.464477714,0.460451751,0.470616958,0.455674518,0.452604032,0.454019481,0.450387747,0.450519858,0.444374599,0.451595471,0.442070639,0.430214821,0.428359923,0.427941082,0.436084416,0.437256451,0.435992141,0.435055566,0.441513836,0.448230261,0.459135121,0.452356157,0.451658155,0.444926134,0.446837485,0.441311793,0.442769291,0.434637126,0.441366029,0.441312468,0.437274135,0.43987734,0.439724254,0.438800956,0.442739125,0.438363286,0.439328277,0.441090932,0.439025957,0.440138453,0.438464971,0.42896355,0.426178903,0.423034344,0.423294812,0.421353873,0.410653049,0.412040464,0.421861821,0.414864122,0.412795347,0.408402345,0.407074304,0.413636086,0.418130501,0.416700587,0.430063694,0.434329797,0.461180028) > 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/1k1yh1256150670.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/2v94h1256150670.tab") > > system("convert tmp/1k1yh1256150670.ps tmp/1k1yh1256150670.png") > > > proc.time() user system elapsed 1.135 0.220 1.237